Infosys interview question

Performance tuning