Help me in solving STCV202 problem

My issue

My code

// Update the code below to solve this problem

#include <iostream>
#include <string>
using namespace std;

int main() 
{
  int t;
  cin>>t; 
  while(t--)
  {
   string S,A,B;
   cin>>S;
// Write the code below this line to generate String A


// Write the code below this line to generate String A
  

   for(int i=0; i<S.length();i++)
       {
         cout<<A[i];
       }
   cout<<endl;
   for(int i=0; i<S.length();i++)
       {
         cout<<B[i];
       }
   cout<<endl;
  }
 return 0;
}
   

Learning course: C++ for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone