Cognizant Interview Question

Coding based questions on string reversal, substrings in java