Below is a comma seperated list of phone numbers customers in the UK have typed into a web form. There was no required format or validation on characters used. Write a script to parse the list and output the numbers as a UK phone numbers in the 3 common display formats:
- 0141 496 0018
- (0141) 496 0018
- +44 141 496 0018
The expected otput form for different dialing codes is given at https://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom#Format