Venmo interview question

Only question was reversing a linked list