CSES Problem Set Nested Ranges Count

Hi guys, I had recently started a YouTube Channel where I regularly post my contest streams and solutions to some educational problems as well. I have recently posted the solution to the problem Nested Ranges Count (Hard Version) from the Searching and Sorting section of the CSES Problem Set. You guys can check it out if you too are stuck in this problem.
Problem Link: https://cses.fi/problemset/task/2169
Solution Video Link: https://www.youtube.com/watch?v=Lyi7N_cB55w
YoutTube Channel Link: https://www.youtube.com/c/PriyanshAgarwal
Do consider subscribing the channel if you like the content. Also, let me know if you have any suggestions or feedback in the comments here or on the channel itself.
Happy Coding.