class Solution: def trans(self , s: str, n: int) -> str: lst=s.strip('"').split(" ") lst.reverse() news=" ".join(lst) return news.swapcase()