Pergunta de entrevista da empresa Rokt

write python to solve regex problem not using an existing package.