The correct answer is A. Mahmud Ghaznavi.
Mahmud Ghaznavi was a Turkic conqueror who ruled over the Ghaznavid Empire from 997 to 1030 AD. He is best known for his raids into the Indian subcontinent, which he carried out in order to plunder wealth and capture slaves. In 1009 AD, Mahmud Ghaznavi invaded Kangra (Nagarkot), a Hindu kingdom in the Himalayas. He sacked the city and its temples, and carried off a large amount of treasure.
The other options are incorrect. Mohammad Ghori was a Turkic ruler who invaded India in the 12th century. Mohammad Alam was a Mughal prince who ruled over the Deccan in the 17th century. Mahmud Begh was a Pashtun ruler who ruled over the Swat Valley in the 16th century.