Pergunta de entrevista da empresa Posha

How to reverse a LinkedList in Java, if user-defined?