Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is there a way to sort the queries so it's easier to search the closest room larger than the size?
Use binary search to speed up the search time.
Solve with full IDE support and test cases