Cognizant interview question

Was asked to write a c++ program to add 3 nos