Function to sort the array order [ ] on the basis of the array freq [ ]
static void merge ( int [ ] order , int [ ] freq , int i , int mid , int j ) { int [ ] tempOrder = new int [ j - i + 1 ] ; int temp = mid + 1 , index = - 1 ; while ( i <= mid && temp <= j ) {