Update exponential recursive solution to Wildcard Matching (Leetcode)