How to straighten leg

I have just been diagnosed with mono inflammatory arthritis of the knee, after having a swollen knee for 11 months and have just started taking methotrexate as my knee us very swollen.I have been told by the rheumatologist that I need to straighten my knee which is now bent.

Has anyone any ideas as to how I can do this.

Many thanks