Pregunta de entrevista de Sauce Labs

A Leetcode easy question, check string with pattern