Implement an IPv4 Iterator | OpenAI Interview Question