Pregunta de entrevista de HackerRank

Phone number solving question with has map algo