Reeta went to a museum and saw a picture of a ruler. "Born- 1793, Died- 1863" was written below the picture. When she enquired about him, her friend told her that he became the king of Afghanistan in 1826. The British felt, either he was hostile or was unable to resist a powerful neighbour's invasion, because he shared a cordial relationship with them. Who was the ruler?