in small restaurant table person b table person it know n group people come today consist people if group consist person seat vacant oneseater table if seat vacant twoseater table if seated twoseater table occupy single person if restaurant deny service groupIf group consist people seat vacant twoseater table if restaurant deny service groupyou give chronological order group come you determine total number people restaurant deny service