You are given two strings
and of lengths andrespectively.
- String
- .
Let
denote the string formed by replacing all the in using the characters from the set .Construct such that is not a subsequence of
.
If multiple such
exist, output any. If no such exists, print.
Input Format
- The first line will contain
- .
Output Format
For each test case, output any valid string
. If no such string exists, print.
Constraints
- .
Sample Input 1
2
4 2
?ab?
ba
4 2
a??b
ab
Sample Output 1
aabe
-1
Explanation
Test case
: Replace the at indices and using characters and respectively. Both the characters belong to the set .The string . Note that no subsequence of is equal to
.
Test case
: There is no possible value of such that is not a subsequence of .
ConversionConversion EmoticonEmoticon