BETA
Java Strings | Set 1
Submissions: 4652   Accuracy:

28.59%

  Difficulty: School
*School Problem's Submission isn't counted in score!
       

Given two strings as input. Your task is to concanate two strings and then reverse the string. Finally print the reversed string.

Input:
First line of the input file contains an integer T which denotes the number of test cases. Then T test cases follow. First line of each test case contains a string A and second line contains another string B.

Output: 
For each test case, print the reversed string.

Constraints:
1<=T<=20
1<=length(A)<=50
1<=lenght(B)<=50

Example:
Input:

2
Geeks
forGeeks
Practice
geeks
Output:
skeeGrofskeeG
skeegecitcarP

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Gaurav Miglani
Author: gaurav miglani


Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.