This has me stumped. How can you prove that for the alphabet $\Sigma = \{0, 1\}$, any string $w \in \Sigma^\star$ with an equal amount of 0's and 1's will always have either the format $0x1y$ or $1x0y$ (where $x$ and $y$ are substrings also $\in \Sigma^\star $ and have an equal amount of 0's and 1's) ?
I see that $x$ and $y$ can both be either empty or another, simpler inductive case of $w$, but I have trouble writing out this proof formally.
The first character of the string has to be a $0$ or a $1$. Since the number of $0$'s is equal to the number of $1$'s, if the first character is $0$, there has to be a $1$ further ahead and if the first character is $1$, there has to be a $0$ further ahead.