This function assumes that the first string will not contain two // consecutive '*' if ... then there are two possibilities // a) We consider current character of second ... Yes test("abc*c?d", "abcd"); // No because second must have 2 instances of ..... Just add a check after the while loop to check if both strings have terminated or not.
Comment