Rosetta Problems

Count Number of Rectangles Containing Each Point

https://leetcode.com/problems/count-number-of-rectangles-containing-each-point