Help me in solving JASTRMCQ2 problem

My issue

Not able to understand the question

My code

7489

Learning course: Strings using Java
Problem Link: Multiple Choice Question Practice Problem in - CodeChef

@devchaudhary20
the question states that u have to match two strings and ‘?’ can me replaced by any character.

Correct Answer:

For all i, either X[i] == Y[i], or at least one of X[i] and Y[i] should be '?'.