Are they same (Divide and Conquer )

In the sample input,
No of test case is 2,
But there are three pairs of strings given??

Yes thats wrong,
Assume 3 test cases and then…