BETA
School Problem's Submission isn't counted in score!

Total Submissions: 2266 Accuracy:

28.55%

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 Input/Output Examples Use 'Expected Output' option **

Contributor: Gaurav Miglani

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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