Pergunta de entrevista da empresa Amazon

Leetcode easy coding question on Linked Lists