C # code to reorder an array according to given indices
using System ; using System . Collections . Generic ; class GFG { static int heapSize ; public static void heapify ( int [ ] arr , int [ ] index , int i ) { int largest = i ;