Pergunta de entrevista da empresa HackerRank

Phone number solving question with has map algo