Infosys interview question

Asked technical based questions to check your problem solving abilities