Goldman Sachs Interview Question

Coding challenge was a basic hash map question...