Pregunta de entrevista de Google

Basic Leetcode D Structures and Algorithms question