Infosys Interview Question

Good very. Easy questions medium