Failing testcase 0

You are only comparing the first letter of both strings, which is wrong. Instead make a function which checks if one string is a prefix of the other. For example, bat is a prefix of the string batman.