Cognizant interview question

about syntax off the code