Placing people to proper seats is a common problem and is often confronted for example when doing a wedding plan.
I have one solution for you, i hope this helps.

B - D - E - A - C

In this arrangement, A sits next to E, C sits next to A, D sits next to both E and B, and B does not sit next to C.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence