Yahoo interview question

Use Arrays, Hashmaps, Sets, and Heaps