Infosys Interview Question

Sorting searching data structures oops