Pergunta de entrevista da empresa Aman

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