Cognizant Interview Question

about syntax off the code