Cognizant interview question

C++ programs basics