Pergunta de entrevista da empresa Bloomberg

Linked list question with addition in place