Domanda di colloquio di Google

Basic Leetcode D Structures and Algorithms question