Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use brute force to update a rectangle and, response to the queries in O(1).
Solve with full IDE support and test cases