You're given a list of points $$$(x_1, y_1), \ldots, (x_n, y_n)$$$
There are two kinds of queries (there are $$$q$$$ queries, where $$$1\leq q \leq 10^5$$$)
- Insert a new point in this list
- Given $$$(x, y)$$$ and you need to count number of points in the given list with $$$x_i \leq x$$$ and $$$y_i \leq y$$$
you can expect the constraints to be $$$n \leq 10^5$$$ and $$$0 \leq x_i, y_i, x, y \leq 10^9$$$
Any help is appreciated, Thanks