Cognizant Interview Question

Final year project.