Google Interview Question

Hash map leet code interview problem