✅💥JAVA | Very Easy Solution
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 int[] separateDigits(int[] nums) {\n        ArrayList<Integer>ar=new ArrayList<>();\n        \n        for(int i=nums.length-1;i>=0;i--){\n            int x=nums[i];\n            while(x>0){\n                int rem=x%10;\n                ar.add(rem);\n                x/=10;\n                \n            }\n        }\n        Collections.reverse(ar);\n        int ans[]=new int[ar.size()];\n        for(int i=0;i<ar.size();i++){\n            ans[i]=ar.get(i);\n        }\n        return ans;\n    }\n}\n```
['Java']