I don’t think the licorice candy caused this. Whether your gut is temporarily narrowed, perhaps from twisting around an adhesion, or permanently narrowed, perhaps from a stricture, almost anything solid can get trapped behind that narrowing (and then get blamed for it). These usually clear up on their own, but 5 days feels like forever, and can be quite risky for dehydration. If you’re not still peeing light-colored fluid a few times per day then you might need an IV to keep you hydrated until this passes. I’m sorry you’re going through this!