Unity interview question

Leetcode style questions: 2 questions about linked lists