Cognizant interview question

Final year project.