Spring Health interview question

Determine if a string is a valid IP address