Pergunta de entrevista da empresa S&P Global

reverse a linked list , surprisingly every interviewer is interested in this silly question