Microsoft interview question

Design an IP address parser