Comviva interview question

Data structures