Consider the language $\text{L}$ over the alphabet $\left \{ a, b \right \}$ given below.
$$\text{L}= \{ w \mid w \;\text{has equal number of $a$’s and $b$’s, and there are no adjacent $a$’s.}\}$$
For instance, the words $abba, abab$ are in language but not $bab$ and $baab$.
- Prove that $\text{L}$ does not contain any word that starts and ends with $a$ $b$.
- Give a context-free grammar for $\text{L}$.