Pergunta de entrevista da empresa Meta

leetcode question: finding exit in a maze, finding the largest number in the number stream.