Maximum Students Taking Exam
Process the hall row by row with a bitmask per row, keeping only seatings that avoid the diagonal views of the row above.
Process the hall row by row with a bitmask per row, keeping only seatings that avoid the diagonal views of the row above.