SiFive interview question

Check whether a substring exists in a string. Substring may include '*', allowing any single character.