Smallest String easy to understand JAVA solution
class Solution {\n    public String getSmallestString(int n, int k) {\n        //initializing array with size n\n        char arr[]=new char[n];   \n        //f
class Solution {\n    public String getSmallestString(int n, int k) {\n        //initializing array with size n\n        char arr[]=new char[n];   \n        //filling whole array with a\n        Arrays.fill(arr,\'a\');    \n        //for the a in array\n        k-=n;                 \n        //turn the character into z from the last element till k become smaller than 25\n        for(int i=n-1;i>=0 && k>0;i--){\n            arr[i]+=Math.min(k,25);    \n            k-=Math.min(k,25);        }\n    return String.valueOf(arr);\n    }\n}
['Array', 'Java']