Answer on Question#38197 - Math - Other
L1={0p1q0r∣p,q,r≥0} is regular:

L2={0p1q0r∣p,q,r≥0,p=r} is context-free language. We can accept or reject L2 with single stack, insert p 0′s into stack skip 1′s . For each 0 corresponding to r , remove 0 from stack.