TODO: https://discuss.codechef.com/t/help-needed-with-nested-range-count-cses/84014 from https://cses.fi/problemset/task/2169