Frage im Vorstellungsgespräch bei Cognizant

Coding based questions on string reversal, substrings in java