I want to reverse the letters of all the words only, not the full string.
For example:
Input: You are Mike.
Output: uoY era .ekiM
How to do this using the functions of string class?
I started with a approach in which I tried to find the space using str.find(' ') and reverse the letters before the space position. But I could do this for the first word only.