Create a function to reverse the words in a sentence while preserving their order.
MediumProblem Statement
Create a function to reverse the words in a sentence while preserving their order.
Sample Input
"Hello World"
Sample Output
olleH dlroW
Limits
Time: 2s · Memory: 256 MB