Cognizant Interview Question

Coding problems.