Problem: Ashish has two strings and , each of length , and an integer . The strings only contain lowercase English letters.
He wants to convert string into string by performing some (possibly zero) operations on .
In one move, he can either
- choose an index () and swap and , or
- choose an index () and if are all equal to some character ( 'z'), replace each one with the next character , that is, 'a' is replaced by 'b', 'b' is replaced by 'c' and so on.
Note that he can perform any number of operations, and the operations can only be performed on string .
Help Ashish determine if it is possible to convert string into after performing some (possibly zero) operations on it.
Input Format: The first line contains a single integer () — the number of test cases. The description of each test case is as follows.
The first line of each test case contains two integers () and ().
The second line of each test case contains the string of length consisting of lowercase English letters.
The third line of each test case contains the string of length consisting of lowercase English letters.
It is guaranteed that the sum of values among all test cases does not exceed .
Output Format: For each test case, print "Yes" if Ashish can convert into after some moves, else print "No".
You may print the letters of the answer in any case (upper or lower).
Note: In the first test case it can be shown that it is impossible to convert into .
In the second test case,
"abba" "acca" "azza".
Here "swap" denotes an operation of the first type, and "inc" denotes an operation of the second type.
In the fourth test case,
"aaabba" "aaabab" "aaaabb" "ddaabb" "ddddbb" "ddddcc".