Pergunta de entrevista da empresa Bloomberg

problems solving questions about linked lists