Step 1:
Rāmāyana was composed by Maharshi Vālmīki, while Mahābhārata was composed by Maharshi Vyāsa.
Step 2:
Aştādhyāyī is the grammatical masterpiece of Pāṇini.
Step 3:
Mālavikāgnimitram is a drama written by Kālidāsa.
Step 4:
Thus, the correct sequence is:
\[
A-II,\; B-IV,\; C-I,\; D-III
\]
Hence, the correct answer is:
\[
\boxed{\text{(1)}}
\]