Giving wrong output

Here i have implemented the inversion count … but it is showing zero as output…


Not able to find error… please help