Very Short and Clean Method
\n\nconst performeAdding = (s, a) => s.split(\'\').map((v, i) => i & 1 ? (+v + a) % 10 : v).join(\'\');\nvar findLexSmallestString = function(s, a, b) {\n    co
\n```\nconst performeAdding = (s, a) => s.split(\'\').map((v, i) => i & 1 ? (+v + a) % 10 : v).join(\'\');\nvar findLexSmallestString = function(s, a, b) {\n    const allStrings = new Set();\n    const appendAllOperations = (str) => {\n        if (allStrings.has(str)) {\n            return;\n        }\n        allStrings.add(str);\n        appendAllOperations(performeAdding(str, a));\n        appendAllOperations(str.slice(b) + str.slice(0, b));\n    }\n    appendAllOperations(s);\n    return [...allStrings].reduce((a, b) => a < b ? a : b);\n};\n```
['JavaScript']