Bloomberg interview question

Basically the sum linked list question on leet code.