Pergunta de entrevista da empresa Rivian

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