Pergunta de entrevista da empresa Oracle

Given a linked list, we have to reverse it.