Allocation-google kicksort

iska ouput mera wrong aa rha h, har case ke liye 4 output aa rhe h?

here is the correct code:


refer to this