Pergunta de entrevista da empresa eDreams ODIGEO

Make an algorithm that checked an string input for an specific format of substring