Amazon Interview Question

Wild card matching Another leetcode question