Capital One interview question

Work with a linked list to solve a coding question