Who was the new Soviet leader who showed a flexible attitude towards the Afghan problem after coming to power?

Who was the new Soviet leader who showed a flexible attitude towards the Afghan problem after coming to power?

سوویت کا نیا رہنما کون تھا جس نے اقتدار میں آنے کے بعد افغان مسئلے کے بارے میں لچکدار رویہ ظاہر کیا؟
Explanation

Mikhail Gorbachev became Soviet leader in 1985.

He adopted a flexible approach to ending the Afghan conflict.

He promoted withdrawal strategies and reforms like glasnost and perestroika.