Solving the wedding table problem in prolog | Hacker News Reader