Meta interview question

Parse a phone number using code.