I have to use induction to prove that for any finite bitstring $s$, if $s$ ends in a $1$, then $01$ occurs at most one more time than $10$. Induct on the length of $s$.
I really can't solve this problem and I'm even having problems starting it. I don't really know what the basis/inductive steps would be for the length of $s$.
Base step:
The only string of length $1$ ending in a $1$ is precisely $1$ which has exactly zero occurrences of both $01$ and $10$.
Inductive step:
Assume that there exists $n \in \mathbb{N}$ such that for all strings of length $\le n$ holds that they have at most one $01$ more than $10$.
Let $s = \underbrace{\cdots\cdots}_{n}1$ be a string of length $n+1$ ending in a $1$.
If the second-to-last digit is $1$, then it looks like this:
$$\underbrace{\cdots\cdots}_{n-1}11$$
Using the inductive assumption for $n-1$, the first $n-1$ bits in $s$ have at most one $01$ more than $10$. The last two bits also have no $01$ or $10$ substrings, so the statement holds for $s$.
If the $1$ at the end is preceded by $k < n$ zeroes, then $s$ looks like this:
$$\underbrace{\cdots\cdots}_{n-k-1}1\,\underbrace{00\cdots00}_{k}\,1$$
Using the inductive assumption for the first $n-k-1$ bits of $s$, there is at most one more $01$ than $10$ in the first $n-k-1$ bits of $s$. There is exactly one more $10$ and $01$ in the remaining $k+2$ bits of $s$, so the statement holds for $s$.
Finally, if $s$ contains only zeroes except the $1$ at the end, then it contains exactly one $01$ and no $10$ substrings, so the statement again holds.
This completes the proof.