Talk is cheap. Show me the code.
Problem : https://www.hackerrank.com/challenges/java-string-reverse/problem
Solution :
Problem : https://www.hackerrank.com/challenges/java-substring/problem