Cleartrip Interview Question

Data structures