Test case not understandable

one of my test is case is showing wrong answer and I am not able to relate to it please help

Hello @jatingarg17,

Please, share your code. It would be easier for me to find the mistake.

Hello @jatingarg17,

How to share your code:

  1. Paste your code on Online Coding Blocks IDE:https://ide.codingblocks.com/
  2. Save it there.
  3. Share the URL generated.

Now, coming back to your code:
Your mycompare function is logically incorrect.
You are just checking for the first charcters of both the strings.
Example:
4
bat
bann
apple
batman
Expected Output:
apple
bann
batman
bat

You can refer to the following code:

Hope, this would help.
Give a like if you are satisfying.