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```java []\nclass Solution {\n    public boolean isBalanced(String num) {\n        \n        int n=num.length();\n\n        int even=0;\n        int evenSum=0;\n        int odd=1;\n        int oddSum=0;\n\n        while(even<n){\n            evenSum+=num.charAt(even)-\'0\';   // charAt will return digit as char so to convert it to integer. ASCII of 0 is 48\n            // so, supoose we got 9 then char9 then char9-char0= 57-48 by ASCII. =9 int\n            even+=2;\n        }\n\n          while(odd<n){\n            oddSum+=num.charAt(odd)-\'0\';\n            odd+=2;\n        }\n\n        return evenSum==oddSum;\n\n\n    }\n}\n```
['Java']