Alberuni lived during the period of which king?

Ans – Mahmud Ghaznavi