Pergunta de entrevista da empresa Google

Basic Leetcode D Structures and Algorithms question