Question d’entretien chez Quantiphi

i was asked rotate an array using linked list