Infosys Interview Question

basic coding questions