Pergunta de entrevista da empresa Epic

Design an algorithm that outputs random phone numbers given some constraints.