Driver Code
public static void main ( String args [ ] ) { int [ ] arr = { 3 , 6 , 8 , 5 , 2 , 1 , 11 , 7 , 10 , 4 } ; int N = arr . length ; System . out . println ( minSumDifference ( arr , N ) ) ; } }