Intuitive function, surprised it passed the tests [Python]
class Solution:\n\n    def findLexSmallestString(self, s: str, a: int, b: int) -> str:\n        #create the dict that keeps track of all words used\n        cou
class Solution:\n\n    def findLexSmallestString(self, s: str, a: int, b: int) -> str:\n        #create the dict that keeps track of all words used\n        counts = defaultdict(int)\n        \n        n = len(s)\n        \n        def helper(s):\n            # add word to keep track\n            if counts[s]:\n                return\n            counts[s] = 1\n            \n            #Rotate\n            to_try = s[-b:] + s[:-b]\n            helper(to_try)\n            \n            #Add\n            to_try = "".join([str(int(s[i])+a)[-1] if i%2 else s[i] for i in range(0,n)])\n            helper(to_try)\n\n        #execute function\n        helper(s)\n\n        #check all words covered\n        return sorted(list(counts))[0]\n  \'\'\'
[]