Apptentive interview question

data structure question