Cognizant Interview Question

Mostly java and C++ based