Bloomberg Interview Question

Hash map and sorting