Scotiabank interview question

LeetCode medium difficulty problem involving hashmaps.