Frage im Vorstellungsgespräch bei Goldman Sachs

The question was based on Frequency count, usually solved using Hashmaps