Cognizant interview question

Performance issue faced and solution I have worked.