Convert IPv4 Ranges to CIDR Blocks | OpenAI Interview Question