Prime Video search services may use simplified wildcard patterns to match content titles. Given a title string s and pattern p, determine whether the pattern matches the entire title.
The pattern contains lowercase English letters, ?, and *. A ? matches exactly one character. A * matches any sequence of characters, including an empty sequence. Return True only when the complete pattern matches the complete string.
s and p.p matches all of s.? and * have wildcard behavior.def wildcard_match(s, p):