Driver code
public static void Main ( ) { int [ ] arr = { 15 , - 2 , 2 , - 8 , 1 , 7 , 10 , 23 } ; Console . WriteLine ( " Length ▁ of ▁ the ▁ longest ▁ 0 ▁ sum ▁ subarray ▁ is ▁ " + maxLen ( arr ) ) ; } }