If ? comes then all three bracket expressions are possible
elif ( st [ start ] == ' ? ' and st [ i ] == ' ? ' ) : NEW_LINE INDENT sum = ( sum + countRec ( start + 1 , i - 1 , dp , st ) * countRec ( i + 1 , end , dp , st ) * 3 ) NEW_LINE DEDENT