
John O. answered 11/06/22
Software Engineer: 7+ Using Computer Science in a Professional Context
The directions are confusing given the sample output, but if I assume your input is a phone number in the form of a string and you want the area code printed as in your example. Here is a solution in ruby: