Python 3 program to count number of sub - arrays whose sum is even using brute force Time Complexity - O ( N ^ 2 ) Space Complexity - O ( 1 )
def countEvenSum ( arr , n ) : NEW_LINE INDENT result = 0 NEW_LINE DEDENT