It might have happened due to acute lumbar muscle strain.
Next Steps
It would be better to take full rest. but since it is not possible considering your exam, you may take Tab. Tolperisone ( Myotop 450 SR) once daily after breakfast for 3 days
Health Tips
Avoid sitting down
Avoid heavy work
Avoid stair climbing and descending