Weedmaps interview question

Basic data structure question.