Google Interview Question

Leetcode Easy - Hard, hashset and dynamic