Quantiphi Interview Question

i was asked rotate an array using linked list