AppZen interview question

data structures