Count number of True in left Partition
leftTrue = parenthesis_count ( Str , i , k - 1 , 1 , dp ) NEW_LINE if ( dp [ i ] [ k - 1 ] [ 0 ] != - 1 ) : NEW_LINE leftFalse = dp [ i ] [ k - 1 ] [ 0 ] NEW_LINE else : NEW_LINE