Globaleur interview question

Code a function that parses an IP address