Driver Code
public static void Main ( String [ ] args ) { int [ ] ar = { 2 , 4 , 1 , 5 , 2 , 3 , 6 , 1 , 2 , 4 } ; int n = ar . Length ; Console . WriteLine ( " Minimum ▁ sum ▁ = ▁ " + minSum ( ar , n ) ) ; } }