If both odd and even are present in given array
if odd % 2 == 0 : NEW_LINE INDENT maxlen = even + odd - 1 NEW_LINE DEDENT else : NEW_LINE INDENT maxlen = even + odd NEW_LINE DEDENT return maxlen NEW_LINE