Driver program to test above functions
public static void Main ( ) { RearrangeArray arrange = new RearrangeArray ( ) ; int [ ] arr = { 1 , 3 , 0 , 2 } ; int n = arr . Length ; Console . WriteLine ( " Given ▁ array ▁ is ▁ " ) ; arrange . printArray ( arr , n ) ; arrange . rearrangeNaive ( arr , n ) ; Console . WriteLine ( " Modified ▁ array ▁ is ▁ " ) ; arrange . printArray ( arr , n ) ; } }