Write a function to check if a string s matches a pattern p
where:
• ? matches any single character.
• * matches any sequence of characters, including an empty sequence.
The pattern must match the entire string, not just part of it.
Input: s = "hello", p = "h*o"
Output: true
Explanation:
* can match "ell".
Input: s = "code", p = "c*d?"
Output: false
Explanation:
The pattern expects one more character after d.
Accepted:
Submission: