Cognizant interview question

One basic coding program in any language.