✔️[C++] || 6 line Simple Code || Easy to understand || TC: O( n ) , SC: O( 1 )
```\nstring getSmallestString(int n, int k) {\n        string res(n,\'a\');\n        for(int i=0;i=26)  res[n-1-i]=\'z\' , k-=26;\n            else res[n-1-i]=c
```\nstring getSmallestString(int n, int k) {\n        string res(n,\'a\');\n        for(int i=0;i<n;++i){\n            int remain=k-(n-1-i);\n            if(remain>=26)  res[n-1-i]=\'z\' , k-=26;\n            else res[n-1-i]=char(\'a\'+remain-1) , k=n-i-1;\n        }\n        return res;\n    }
['Greedy', 'C']