Cognizant Interview Question

I got asked questions regarding arrays, strings, patterns, and basic stuff of OOPs