Cognizant Interview Question

One basic coding program in any language.