The symptoms you described—difficulty in straightening the knee, pain while moving the leg to the right, and discomfort while walking—could be due to several possible causes, including:
1. Knee Ligament or Meniscus Injury – A minor sprain or tear in the ligaments (like ACL or MCL) or meniscus (cartilage cushion in the knee) may cause restricted movement and pain.
2. Patellar Maltracking or Dislocation – If the kneecap (patella) is not moving correctly in its groove, it can cause difficulty in straightening the knee.
3. Inflammation or Swelling (Synovitis, Bursitis, or Tendinitis) – Overuse or strain from exercises can cause inflammation in knee structures.
4. Muscle Imbalance or Strain – Overworked quadriceps or hamstring muscles may restrict movement.
5. Early Arthritis or Cartilage Damage – Though less common at your age, cartilage wear can sometimes present with similar symptoms.
Immediate Steps to Take
Rest – Avoid high-impact activities and exercises that worsen the pain.
Ice Therapy – Apply an ice pack (wrapped in a cloth) to the knee for 15–20 minutes every 3–4 hours to reduce swelling.
Compression – Use an elastic bandage or knee brace for support.
Elevation – Keep your knee elevated on a pillow while resting to reduce swelling.
Pain Relievers – If needed, take over-the-counter painkillers like ibuprofen or paracetamol (after consulting a doctor).
Gentle Stretches – Try mild stretching and range-of-motion exercises if they don’t cause pain.
Next Steps
A proper evaluation is needed with examination to address the issue.