Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Deal with each of the patterns individually.
Use the built-in function in the language you are using to find if the pattern exists as a substring in <code>word</code>.