Help me in solving TWOSTR problem

My issue

not able to understand the question

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
	public static void main (String[] args) throws java.lang.Exception
		// your code goes here

Learning course: Strings using Java
Problem Link: CodeChef: Practical coding for everyone

your task in this question is that u have to match each character of X and Y string and if it has ? then it can be matched with any small case alphabet.
If you are able to match X and Y then print “YES”.
else print “NO”.