Quantiphi interview question

i was asked rotate an array using linked list