Booz Allen Hamilton Interview Question

Typical Java interview question. Data structure.