Hi Pradeep,
As sanjeev says release activity step by step.
As per your example,
In standard system it is not possible to restrict Release of activity 20 before confirming activity 10.
you can create relationship between activities.
You can make Enhancement or development for this, using this it can be possible.
Thanks and Regards,
Sandeep