Infosys interview question

Focused on the technical part.