Infosys Interview Question

basic question only as it was a campus section