BETA
Successful submissions of School Problems are not counted in user ratings.

Submissions : 638 Accuracy :

29.78

Java Strings | Set 1
       

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 Examples Use Expected Output**


Contributor: Gaurav Miglani

Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



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