Java| Easy to understand| Simple Solution
Steps followed to convert given num into mapped value:\n1. Convert num to string using String.valueOf()\n2. Replace original digit d to mapping[d]\n3. Convert b
Steps followed to convert given num into mapped value:\n1. Convert num to string using String.valueOf()\n2. Replace original digit `d` to `mapping[d]`\n3. Convert back to int & store along with original index\n\nOnce converted, apply sorting and fetch num based on original index.\n\n```\nclass Solution {\n    public int[] sortJumbled(int[] mapping, int[] nums) {\n        int n = nums.length;\n        int[][] converted = new int[n][2];\n        for (int i = 0; i < n; ++i) {\n            String str = String.valueOf(nums[i]);\n            char[] arr = str.toCharArray();\n            for (int j = 0; j < arr.length; ++j) {\n                arr[j] = (char)(mapping[arr[j] - \'0\'] + \'0\');\n            }\n            converted[i][0] = Integer.parseInt(new String(arr));\n            converted[i][1] = i;\n        }\n        Arrays.sort(converted, (a, b) -> {\n            return a[0] - b[0];\n        });\n        \n        int[] res = new int[n];\n        for (int i = 0; i < n; ++i) {\n            res[i] = nums[converted[i][1]];\n        }\n        return res;\n    }\n}\n```
['String', 'Java']