Broadridge Interview Question

Calculate subnets on the fly