1. Write a method in Java to find the last address in the block when one of the addresses in the block is given as a string representing a CIDR notation.
2. Write a method in Java to find the size of a block when one address in the block (in CIDR notation) is given.