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 "Sanskrit, as the learned language of Ancient India, thus existed alongside the vernacular Prakrits, which were Middle Indo-Aryan languages.". Is that enough to answer the question?
Answer: yes