Types: n: int, m: int, N: List[str], M: List[int], B: List[str]
Ranges: 1 ≤ n ≤ 100, 1 ≤ m ≤ 1000, Mi: 1 ≤ Mi ≤ 1000000, length of Ni: 8, length of Bi: 8
Addtl Info: Ni contains digits and '*', Bi contains only digits