Java Program To Reverse A String User Input In Python