Driver Code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 2 , 3 , 4 } ; int n = arr . Length ; int [ ] b = solve ( arr , n ) ; Console . WriteLine ( " [ " + String . Join ( " , " , b ) + " ] " ) ; } }