Write a Python class to reverse a string word by word.
string = input("Please enter your own String : ")
str = ' '
for i in string:
str = i + str
print("The Original String is: ", string)
print("The Reversed String is: ", str)
OUTPUT
Please enter your own String : malayalam
The Original String is: malayalam
The Reversed String is: malayalam