If you are sure to clear B and C then I would set ...
# android
b
If you are sure to clear B and C then I would set A as the parent and then navigateUp on D with displayHomeAsUp in the toolbar