Fortinet interview question

Implement a IPv4, IPv6 string verifier