Driver Code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 1 , 2 , 2 , 3 , 4 } ; int [ ] cost = { 3 , 2 , 5 , 4 , 2 , 1 } ; int N = arr . Length ; minimumCost ( arr , cost , N ) ; } }