Rivian interview question

The coding question came from LeetCode, and involved manipulating a linked list.