update solution for leetcode Wildcard-Matching