The correct answer is: D. Sansar Chand
Sansar Chand was the ruler of the Katoch dynasty of Kangra from 1700 to 1770. He was a powerful and influential ruler who expanded the kingdom of Kangra and made it one of the most powerful kingdoms in the region. He was also a patron of the arts and literature.
Amar Singh Thapa was a general in the Gorkha army who fought against the Katoch dynasty. He was defeated by Sansar Chand in 1708.
Desa Singh was a general in the Katoch army who fought against the Gorkha army. He was defeated by Amar Singh Thapa in 1710.
Ranjit Singh was the founder and first Maharaja of the Sikh Empire. He was not a ruler of the Katoch dynasty.