Infosys interview question

All are real case scenarios and I was given some coding Questions