Fidelity Investments interview question

Python, Java, and Golang. Leetcode medium > easy, hashmaps.