IP Address Validation

The following is the solution to Hacker Rank Problem IP Address
Validation using Java