Infosys Interview Question

Logic questions