Doubt on Increasing array queries

I am unable to get the appproach to solve CSES - Increasing Array Queries

In the provided solution, how are we using fenwixk trees