reverse a string java and python