Infosys Interview Question

Just Need Confidence to attempt the question