It worked but not good enough

This time, it could run, but it will time out if there are 100000 phone
number. The program will be reworked.