Bloomberg Interview Question

Questions for making, sorting a dictionary