Solution using to_string and stoi
Basic Idea: Convert given number to mapped number with the help of in-built functions like to_string and stoi. Store mapped number along with current index as i
**Basic Idea:** Convert given number to mapped number with the help of in-built functions like to_string and stoi. Store mapped number along with current index as it helps to identify the relative order in case when mapped number is same. \n\n```\nclass Solution {\npublic:\n    vector<int> sortJumbled(vector<int>& mapping, vector<int>& nums) {\n        \n        vector<int> vec;\n        vector<pair<int, int>> actualMapping;\n        for(int i =0; i < nums.size(); i++){\n            string numStr = to_string(nums[i]);\n            for (char digit : numStr) {\n                vec.push_back( mapping[digit - \'0\']); // Convert char to int\n            }\n            string concatenatedString;\n            for (int digit : vec) {\n                concatenatedString += to_string(digit);\n            }\n            vec.clear();\n            \n            int concatenatedNumber = stoi(concatenatedString);\n            cout<< concatenatedString;\n            \n            actualMapping.push_back({concatenatedNumber, i});\n        }\n        \n        vector<int> ans;\n        \n        sort(actualMapping.begin(), actualMapping.end());\n        for (auto pair : actualMapping) {\n            ans.push_back(nums[pair.second]);\n        }\n        return ans;\n    }\n};\n```
['Array', 'Sorting']