simple if else statements  || Beats 97 || o(n) ||
\n\n# Code\n\nclass Solution:\n    def getSmallestString(self, s: str, k: int) -> str:\n        res=""\n        for i in s:\n            minimumDistance=min(ord
\n\n# Code\n```\nclass Solution:\n    def getSmallestString(self, s: str, k: int) -> str:\n        res=""\n        for i in s:\n            minimumDistance=min(ord("z")-ord(i)+1,ord(i)-ord("a"))\n            if i=="a":\n                res+="a"\n            elif minimumDistance<k+1:\n                res+="a"\n                k=k-minimumDistance\n            elif k>0:\n                res+=chr(ord(i)-k)\n                k=0\n            else:\n                res+=i\n        return res\n```
['String', 'Greedy', 'Python3']