text: Driver Code
code: public static void Main ( String [ ] args ) { int [ ] arr = new int [ ] { 1 , 2 , 2 , 3 } ; int n = 4 ; int [ ] ans = countSum ( arr , n ) ; Console . WriteLine ( " EvenSum ▁ = ▁ " + ans [ 0 ] ) ; Console . WriteLine ( " OddSum ▁ = ▁ " + ans [ 1 ] ) ; } }