My code is similar to following. suppose currently my navigation stack history is:
Screen A> Screen B> Screen D.
From screen D on a button press I want t