Easy python
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def getSmallestString(self, s: str, k: int) -> str:\n        arr = list(s)\n        \n        for i in range(len(arr)):\n            if k==0:\n                break \n\n            l=ord(s[i]) - ord(\'a\')\n            r=26 - (ord(s[i]) - ord(\'a\'))\n            \n            if k>=min(l,r) :\n                if l<r:           \n                    arr[i]=\'a\'\n                    k-=l\n                else:\n                    arr[i]=\'a\'\n                    k-=r\n\n            elif k>0:\n                arr[i] = chr(ord(arr[i]) - k) \n                k = 0\n                break\n\n        return \'\'.join(arr)\n        \n```
['Python3']