--- Day 7: Internet Protocol Version 7 ---
While snooping around the local network of EBHQ, you compile a list of IP addresses (they're IPv7, of course; IPv6 is much too limited). You'd like to figure out which IPs support TLS (transport-layer snooping).
An IP supports TLS if it has an Autonomous Bridge Bypass Annotation, or ABBA. An ABBA is any four-character sequence which consists of a pair of two different characters followed by the reverse of that pair, such as
abba. However, the IP also must not have an ABBA within any hypernet sequences, which are contained by square brackets.
abba[mnop]qrstsupports TLS (
abbaoutside square brackets).
abcd[bddb]xyyxdoes not support TLS (
bddbis within square brackets, even though
xyyxis outside square brackets).
aaaa[qwer]tyuidoes not support TLS (
aaaais invalid; the interior characters must be different).
ioxxoj[asdfgh]zxcvbnsupports TLS (
oxxois outside square brackets, even though it's within a larger string).
How many IPs in your puzzle input support TLS?