Write a program which take " I am fine" as input and gives output " fine am I"
Sigiloso
1. Append a space to the end of input string. 2. From the start of the string till a space is met, push that substring into a stack(including the space). 3. move the start of string to indexof(space)+1 and repeat 2nd step until end of string is reached. 4. Pop elements from stack and add to the reversed string. 5. Trim string and return