Checking if frequency of character is even or odd .
if ( ( getFrequency ( tree , r , i ) - getFrequency ( tree , l - 1 , i ) ) % 2 == 1 ) : NEW_LINE INDENT count += 1 ; NEW_LINE DEDENT print ( " Yes " ) if ( count <= 1 ) else print ( " No " ) ; NEW_LINE