Cognizant interview question

Project, sensor working,