How can a CFG represent a palindrome number?

How can a CFG represent a palindrome number?

From the JGTDSL Assistant Engineer (CSE) October 2021 – Written exam, question 2 of 12.

More from this paper