Microsoft Interview Question

Write a function to format a string of something into a proper telephone number format.