ZAPR Media Labs interview question

Solution approach which is mostly on Java collections.