Google Interview Question

Basic Leetcode D Structures and Algorithms question