Pergunta de entrevista da empresa Bloomberg

Question about linked list and adding numbers. from leetcode