One student per desk. Each column holds one class, neighbouring columns hold different classes, and roll numbers run front to back.
Students of the same grade (10-A and 10-B count as one) never sit side by side or diagonally next to each other. When only one grade is left, alternate columns stay empty.