Epic interview question

Create an algorithm that creates all possible phone numbers given certain numbers and certain parameters.