C#
\npublic class Solution {\n    public string GetSmallestString(int n, int k) {\n        char[] ans = new char[n];\n        Array.Fill(ans,\'a\');\n        k = k
```\npublic class Solution {\n    public string GetSmallestString(int n, int k) {\n        char[] ans = new char[n];\n        Array.Fill(ans,\'a\');\n        k = k-n;\n        \n        for(int i=n-1;i>=0;i--){\n            int diff = Math.Min(k,25);\n            ans[i]=(char)(\'a\'+diff);\n            k=k-diff;\n        }\n        return new string(ans);\n    }\n}\n```
[]