Pergunta de entrevista da empresa Fitch Group

leetcode easy. linked list question.