Pergunta de entrevista da empresa Bloomberg

Question (mid level) on linked lists