Pregunta de entrevista de Quantiphi

i was asked rotate an array using linked list