The correct answer is A. Sahdev.
Sahdev was the last Hindu ruler of Kashmir. He was the son of King Lalitaditya Muktapida and ruled from 797 to 813 CE. He was succeeded by his son, Avantivarman, who was the first Muslim ruler of Kashmir.
Udayanadeva was a Hindu ruler of the Pala dynasty who ruled from 820 to 854 CE. He was the son of Dharmapala and succeeded him to the throne. He was a powerful ruler and expanded the Pala kingdom to its greatest extent.
Harsha was a Hindu emperor who ruled from 606 to 647 CE. He was the son of Prabhakaravardhana and succeeded him to the throne. He was a powerful ruler and conquered much of northern India.
Bhoja was a Hindu king who ruled the Paramara dynasty from 1010 to 1055 CE. He was a powerful ruler and patron of the arts. He is also known for his treatise on medicine, the Bhavaprakasha.
Sahdev was the last Hindu ruler of Kashmir because he was the last ruler of the Karkota dynasty, which was a Hindu dynasty that ruled Kashmir from the 7th to the 9th centuries CE. After Sahdev’s death, Kashmir was ruled by Muslim dynasties.