Infosys interview question

Questions on data structure helped to crack it