Infosys Interview Question

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