Driver Code
public static void main ( String [ ] args ) { int ar [ ] = { 2 , 4 , 1 , 5 , 2 , 3 , 6 , 1 , 2 , 4 } ; int n = ar . length ; System . out . println ( " Minimum ▁ sum ▁ = ▁ " + minSum ( ar , n ) ) ; } }