Design a restaurant waitlist and table assignment, as an OOD exercise you implement in code. Requirements from one phone-screen report: - Waiting parties are first in, first out, but if an 8-person table frees up it goes to an 8-person party first, even if a 2-person party is ahead of…