Context-free grammar for Polindrom
w =
Grammar
S → 0S0 | 1S1 | p