Infosys interview question

Location