Driver Code
public static void Main ( ) { Rearrange rearrange = new Rearrange ( ) ; int [ ] arr = { 3 , 2 , 0 , 1 } ; int n = arr . Length ; Console . Write ( " Given ▁ Array ▁ is ▁ : " ) ; rearrange . printArr ( arr , n ) ; rearrange . rearrange ( arr , n ) ; Console . Write ( " Modified ▁ Array ▁ is ▁ : " ) ; rearrange . printArr ( arr , n ) ; } }