Pergunta de entrevista da empresa Google

question involving doubly linked lists.