7: Reverse words 2
Write a method that takes a phrase
and reverses each word
in the phrase the order of the words should be the same
Example 1
Input: Everybody lies
Output: ydobyrevE seil
Example 2
Input: Go ahead, make my day
Output: oG ,daeha ekam ym yad
Note: Words are separated by
single space