I want to know the answer to the following question:
Where was Sanskrit a learned language of the high classes?
All the background I'm provided with is that "Knowledge of Sanskrit was a marker of social class and educational attainment in ancient India, and the language was taught mainly to members of the higher castes through the close analysis of Vyākaraṇins such as Pāṇini and Patanjali, who exhorted proper Sanskrit at all times, especially during ritual.". Is that enough to answer the question?
Answer: no