Cognizant Interview Question

All based on coding and language