Binary index tree question explanation required.

I m stuck with this practise question on hackerrank…
link
I know it will be solved using BIT , but can’t understand how , I am really new to BIT , plz someone give some explanation on the approach.

//