Cognizant interview question

All based on coding and language