Problem 1002: Phone numbers
Accepted solution. Needs refactoring.