Write a method isBalanced that returns true if the passed String is balanced.
A String is balanced if in every substring, the absolute difference between the
number of 1s and 0s is at most 2. The passed value will only contain 1s and 0s.
Stuck? You may find these lessons helpful: