Infosys Interview Question

Very logical based questions