C#
IntuitionApproachComplexity
Time complexity:O(n)

Space complexity:O(1)
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:O(n)
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:O(1)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```csharp []
public class Solution {
    public bool IsBalanced(string num) {
                  var evenPointer = 0;
            var oddPointer = 1;
            var even = 0L;
            var odd = 0L;

            while (evenPointer < num.Length || oddPointer < num.Length)
            {
                if (evenPointer < num.Length)
                {
                    even += num[evenPointer] - '0';
                }
                if (oddPointer < num.Length)
                {
                    odd += num[oddPointer] - '0';
                }

                evenPointer += 2;
                oddPointer += 2;
            }

            return even == odd;  
    }
}
```
['C#']