Addition ain't simple
Practice
3.7 (100 votes)
Easy
Problem
68% Success 22240 Attempts 10 Points 5s Time Limit 256MB Memory 1024 KB Max Code

Jack is awesome. His friends call him little Einstein. To test him, his friends gave him a string. They told him to add the string with its reverse string and follow these rules:

  1. Every ith character of string will be added to every ith character of reverse string.
  2. Both string will contain only lower case alphabets(a-z).
  3. Eg:- a+a=b,a+c=d,z+a=a (Refer to sample test cases for more details)

Input:

First line contains a value N denoting number of test cases. Next N lines contains string str.

Output:

For every string str output the string that Jack's friends wants from him.

Constraints

1 <= N <= 10

1 <= str <= 10^5

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
116 votes
Tags:
Basic ProgrammingBasics of ImplementationImplementation
Points:10
156 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyImplementation
Points:10
29 votes
Tags:
Basic ProgrammingC++