Mahmud of Ghazni attack on the Indian subcontinent was against which dynasty in its early period

A ) Mughal

B ) Shahi ✅

C ) Delhi Sultanate

D ) Maurya