Count number of True in right Partition
rightTrue = parenthesis_count ( Str , k + 1 , j , 1 , dp ) NEW_LINE if ( dp [ k + 1 ] [ j ] [ 0 ] != - 1 ) : NEW_LINE rightFalse = dp [ k + 1 ] [ j ] [ 0 ] NEW_LINE else : NEW_LINE