Cognizant Interview Question

Basic Coding in any language