C++
(```)  class Solution {\npublic:\n    bool isTransformable(string s, string t)\n    {\n        int n = t.size();\n        \n        vector> v(10);\n        \n  
(```)  class Solution {\npublic:\n    bool isTransformable(string s, string t)\n    {\n        int n = t.size();\n        \n        vector<queue<int>> v(10);\n        \n        for(int i=0; i<s.size(); i++)\n        {\n            v[s[i] - \'0\'].push(i);\n        }\n        \n        for(int i=0; i<n; i++)\n        {\n            int d = t[i] - \'0\';\n            \n            if(v[d].empty())\n            {\n                return false;\n            }\n            \n            int pos = v[d].front();\n            v[d].pop();\n            \n            for(int k = 0; k<d; k++)\n            {\n                if(!v[k].empty() && v[k].front() < pos)\n                {\n                    return false;\n                }\n            }\n        }\n        \n        return true;\n        \n    }\n};
[]