Inversion count

getting wrong ans plss help
https://ide.codingblocks.com/s/36713

the question is
https://online.codingblocks.com/player/9455/content/5137

the count variable in merge function gets zero at each while
iteration. how to fix??

you are making the count function 0 inside the merge function, hence it will start from 0 every time you call the merge function.

please share the link to the problem as well