IP Address Validation Puzzle Solved