Apollo Hospitals Interview Question

technical round was bit difficult