gather operation:\n a. Query the Segment Tree to find the leftmost node with a maximum value greater than or equal to k.\n b. If such a node is found within maxRow, allocate k seats from that row and update the Segment Tree accordingly.\n c. If no such node is found, return an empty array.\n3. For the scatter operation:\n a. Query the Segment Tree for the sum of available seats up to maxRow.\n b. If the sum is less than k, return false.\n c. If the sum is greater than or equal to k, allocate seats starting from the first row and update the Segment Tree accordingly until k seats are allocated or maxRow is reached.\n d. Return true if seats are successfully allocated.