Syrmia Interview Question

Classic leetcode easy hashmap problem.