Difficulty: ★★☆☆☆
You need to design a new typo detector for debugging, there are only two types of typos to detect:
(1) Accidentally capitalize exactly one lowercase character.
(2) Accidentally switches two different characters (Not only detect adjacent characters)
Arc will input two strings s (the correct string) and t (the wrong string). Your design must be able to determine whether t meets exactly one of the four types of typo as above.
The first line contains an integer T, representing the number of inputs Arc gives to you.
The next T line contains two strings si, ti, representing the correct string and the wrong string.
It is guaranteed that:
For each input, if t meets exactly one of the two types of typo, please output "Yes",
otherwise, please output "No".