Very Easy Simulation Solution || C++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int lengthAfterTransformations(string s, int t) {\n        int M = 1e9+7;\n        vector<int> cnt(26, 0);\n        for(auto i : s) cnt[i-\'a\']++;\n        int prev = 0;\n        while(t--) {\n            for(int i = 0 ; i < 26 ; i++) {\n                int k = cnt[i]%M;\n                cnt[i] = prev%M;\n                if(i == 0) cnt[i] = 0;\n                prev = k;\n                if(i == 25) {\n                    cnt[0] += prev%M;\n                    cnt[1] += prev%M;\n                }\n            }\n        }\n        int ans = 0;\n        for(int i = 0 ; i < 26 ; i++) {\n            ans = (ans + cnt[i]%M)%M;\n        }\n        return ans;\n    }\n};\n```
['String', 'Simulation', 'C++']