The first line is an interger Q( Q = 50 ), indicating the number of test cases. Then in each case: The first line is the string S, and the second line is the string T. ( 0 < |S|, |T| ≤ 1e4 ) The data guarantee every character of T is randomly generated.