solve the wild card Matching problem.