Wildcard Matching

Solution Code

Time Complexity

O(S * P)

Space Complexity

O(1)