Infosys Interview Question

basic logical and quant