Q18:Assume you have a method isSubstring which checks if one word is a substring of another