Cognizant Interview Question

Performance issue faced and solution I have worked.