Microsoft Interview Question

Leetcode easy type of problem. Think I used a hashmap to solve