Cognizant interview question

College project related.