Help me in solving STC11 problem

My issue

My code

// Update the code below to solve this problem

#include <bits/stdc++.h>
using namespace std;

int main() 
{
	int t;
    cin >> t;
	while(t--)
	{
        string A, B;
	    cin >> A;
	    
	 
	}
}
        

Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone