The correct option is B Because the ruler of Peshawar fled from there without fighting a war.
In 1818, Ranjit Singh got an opportunity to attack Peshawar and invaded with his army. Khatak tribe tried to stop them but failed to do so and the Maharaja's army occupied the forts of Khairabad and Jahangir. The ruler of Pehawar, Yar Mohammad Khan, fled from Peshawar and Maharaja captured the region without any resistance.