Reverse a string in java
Signed-off-by: hardikmahant <hthinksmart@gmail.com>