Infosys interview question

Based on internships, work ex