Okta·Software Engineer·Technical Phone Screen
May 2026
Okta SWE interview that leaned hard into string validation and networking basics. The IPv4 problem was straightforward enough but the follow-up asking you to also handle IPv6 and classify strings is where things got interesting.
- Given an array of strings, write a function that returns True if every string is a valid IPv4 address, and False otherwise. A valid IPv4 address has exactly four dot-separated octets, each containing only digits, no leading zeros, and a value between 0 and 255.
- Follow-up: extend your solution to also detect IPv6 addresses, and classify each input string as 'IPv4', 'IPv6', or 'Neither'.
“Seemed simple at first and I jumped straight to splitting on '.' without thinking through edge cases.”