✅💯🔥Simple Code📌🚀| 🔥✔️Easy to understand🎯 | 🎓🧠Beginner friendly🔥| O(n) Time Complexity💀💯
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```\nclass Solution {\n    public String sortVowels(String s) {\n        ArrayList<Character> list = new ArrayList<>();\n        for(int i=0; i<s.length(); i++){\n            char ch = s.charAt(i);\n            if(ch==\'a\' || ch==\'e\' || ch==\'i\' || ch==\'o\' || ch==\'u\' || ch ==\'A\' || ch==\'E\' || ch==\'I\' || ch==\'O\' || ch==\'U\'){\n                list.add(ch);\n            }\n        }\n        Collections.sort(list);\n        int idx = 0;\n        StringBuilder str = new StringBuilder();\n        for(int j=0; j<s.length(); j++){\n            char ch = s.charAt(j);\n            if(ch==\'a\' || ch==\'e\' || ch==\'i\' || ch==\'o\' || ch==\'u\' || ch==\'A\' || ch==\'E\' || ch==\'I\' || ch==\'O\' || ch==\'U\'){\n                str.append(list.get(idx++));\n            }else{\n                str.append(ch);\n            }\n        }\n        return str.toString();\n    }\n}\n```\n![7be995b4-0cf4-4fa3-b48b-8086738ea4ba_1699897744.9062278.jpeg](https://assets.leetcode.com/users/images/fe5117c9-43b1-4ec8-8979-20c4c7f78d98_1721303757.4674635.jpeg)
['String', 'C', 'Sorting', 'Python', 'C++', 'Java']