Unable to pass all test cases

https://ide.codingblocks.com/s/246434.
kindly let me know where is the fault

@ashsingh
Your code is giving wrong ans for such testcases
1
5
your code is giving some random value. Do the following change your code will work fine

  1. line 43 should be shuffle(arr,0,n-1);
  2. line 45 should be quick_sort(arr,0,n-1);