Question: Who wrote a famous treatise on sanskrit grammer?
Answer: Panini
Natural Questions answer: Pāṇini (from the Wikipedia article "Pāṇini")