@Taaha M , Have you tried implementing solution I have posted? Where are you stuck now?

 

If this solution helped you Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.