Infosys interview question

Tech part was main part.