Pergunta de entrevista da empresa Adobe

Reverse a linked list, both a singly and doubly linked list