Logical for unclosed brackets

has_unclosed_brackets(strings)