Cognizant interview question

Everything was easy !