Equal strings are not considered as meta strings.
The first line of input contains an integer 'T' denoting the number of test cases or queries to be run.
The first line of each test case or query contains the first string “STR1”.
The second line of the test case or query contains the second string “STR2”.
For each test case, print a single line containing “YES” if the strings are meta strings otherwise, “NO”.
The output of each test case will be printed in a separate line.
You do not need to print anything; it has already been taken care of. Just implement the given function.
1 <= T <= 10
2 <= length of STR1<= 10 ^ 5
2 <= length of STR2 <= 10 ^ 5
Sample Input 1:
Sample Output 1:
Explanation for Input 1:
For test case 1: By swapping ‘i’ and ‘n’ in the second string, it becomes equal to the first string.
For test case 2: There is no way we can make both the strings equals by swapping one pair of characters.
Sample Input 2:
Sample Output 2: