Cognizant interview question

Basic c language