class Solution:
    #time O(N) space(1)
    def reverseWords(self, s: str) -> str:
        s = s.split(' ')
        for idx, each in enumerate(l):
            s[idx] = each[::-1]