Java Clean Solution
Code\njava []\nclass Solution {\n    public boolean isBalanced(String num) {\n        long odd = 0, even = 0;\n        for (int i = 0; i < num.length(); i++) {\
# Code\n```java []\nclass Solution {\n    public boolean isBalanced(String num) {\n        long odd = 0, even = 0;\n        for (int i = 0; i < num.length(); i++) {\n            if (i % 2 == 0) {\n                even += num.charAt(i) - \'0\';\n            } else {\n                odd += num.charAt(i) - \'0\';\n            }\n        }\n        return odd == even;\n    }\n}\n```
['Math', 'String', 'String Matching', 'Java']