Only do this exercise if you've been instructed to do so by your care team. And never put a pillow or towel under your knee unless you're instructed to do so by your care team.
Lie on your back with a pillow or rolled towel under your knee. Slowly straighten your knee, raising your heel off the bed. Hold as directed. Repeat as directed.