How to detect when two or more products are conflicting in cart

I’m selling services(workshops).

Is there a third-party app or code that is able to detect when two or more workshops are conflicting in either the date or time when adding to cart?