it shows that I should have accounted for negative integers but my code is working absolutely fine on my pc for negative integers too.
Test case 2 failure
if(arr[a] < = arr[b])
in line 19
if this solves your doubt please mark it as resolved 
it shows that I should have accounted for negative integers but my code is working absolutely fine on my pc for negative integers too.
if(arr[a] < = arr[b])
in line 19
if this solves your doubt please mark it as resolved 