During the course of his numerous invasions, Muhammad Ghori (Before his conquest in the Second Battle of Tarain) was defeated by
(a) Chalukya king Bhima II of Gujarat
(b) Prithviraja Chauhan III of Ajmer
(c) Both (a) and (b) above
(d) (b) and the Chandela king Paramardi