CIDR subnet range
Your task
Given a CIDR block like "192.168.1.10/24", compute the subnet range. Return a list [network_address, broadcast_address, num_addresses] where the two addresses are dotted-quad strings and num_addresses is the total count of addresses in the block (including network and broadcast). Host bits in the input may be set (non-strict); compute the network from the prefix length.
Examples
cidr_info(cidr: str) -> listExample 1
Input
cidr_info("192.168.1.10/24")Output
["192.168.1.0", "192.168.1.255", 256]