Epic Interview Question

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