Lili’s teacher ask her to make a program to reverse a given number represent by a string and reverse it.

Lili’s teacher ask her to make a program to reverse a given number represent by a string and reverse it.

Her teacher know that Lili doesn’t like to use a recursive function. So her teacher will give Lili zero score if she doesn’t applied a recursive function for this homework. That will read an integer represent length of a string and a string that he need to reverse, Help Lili to get a good score.
Format Input
The first line of the input contains an integer T, the number of test case.
The next T line contains a string s represent a number
Format Output
For each test case, print Case #X: Y. X is the number of test case and Y is the reversed number.
Constraints
1 <= T <= 100
10 <= |S| <= 1000
|S| is the length of string S
Sample Input:
3
12
101010101010
123123123123
Sample Output:
Case #1: 21
Case #2: 010101010101
Case #3: 321321321321

  Solved by verified study co-pilot   All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.
Student review: (6 ratings) 6 out of 6 people found this solution helpful.