Pregunta de entrevista de Aman

reverse a linked list, and another to remove duplicates from an array.