New York Times interview question

Mostly Collection framework questions