Super.com interview question

Basic Python Data Aggregation Problem