Solve Phone Number in Scala