Infosys Interview Question

should be much difficult for experienced person