Pregunta de entrevista de Cognizant

Coding based questions on string reversal, substrings in java