Infosys interview question

Data structures and algorithms, sql