Quantiphi interview question

Data structures