Goldman Sachs interview question

Extract data from maps and do some computation with it