Morgan Stanley Interview Question

Nothing too difficult, brush up on hash tables/data structure