Fast Enterprises interview question

Basic algorithms and hash map questions