Simple Cpp Solution. TC - O(len(message))
Code
# Code
```cpp []
class Solution {
public:
    vector<string> solve(string message, int limit, int digit){
        int k;
        if(digit == 1){
            k = 9;
        }else if(digit == 2){
            k = 99;
        }else if(digit == 3){
            k = 999;
        }else{
            k = 9999;
        }
        vector<string> ans;
        int idx = 0;
        for(int i=1;i<=k;i++){
            string str = "<" + to_string(i) + "/" + to_string(k) + ">";
            int len = limit - str.size();
            if(len <= 0){
                return {};
            }
            if(idx + len < message.size()){
                str = message.substr(idx, len) + str;
                idx += len;
                ans.push_back(str);
            }else{
                str = message.substr(idx) + str;
                idx = message.size();
                ans.push_back(str);
                break;
            }
        }
        if(idx < message.size()){
            return {};
        }

        int replace = ans.size();
        vector<string> finalString;
        for(int i=0;i<ans.size();i++){
            string str = "";
            for(int j=0;j<ans[i].size();j++){
                if(ans[i][j] != '/'){
                    str += ans[i][j];
                }else{
                    break;
                }
            }
            str += "/";
            str += to_string(replace);
            str += ">";
            finalString.push_back(str);

        }
        return finalString;
    }
    vector<string> splitMessage(string message, int limit) {
        for(int i=1;i<=4;i++){
            vector<string> ans = solve(message, limit, i);
            if(ans.size() > 0){
                return ans;
            }
        }
        return {};
    }
};
```
['C++']