Adobe Interview Question

1. String Manipulation based on IP address and Subnet Mask