Reconstruct Network Addresses - Coding problem | OneNoughtOne