I have an activity ABCDE
I need to close the activity CDE when the user has moved from E to B. Tobish the user opens the CDE after goes to B and at this point you need to close the CDE.
Should remain A B. If the user in C or in D, then you do not need to close anything
PS I read my question and remembered computer science problems))