Infosys Interview Question

They asked multiple questions not a single one.