Zoho Coding Question

Using Recursion reverse the string such as

Input
one two three
Output
three two one

Input
I Love India
Output
India Love I


Zoho Coding Question

Write a program to sort the element in odd positions in decending order and even elements in ascending order.

Input
13, 2, 4, 15, 12, 10, 5
Output
13, 2, 12, 10, 5, 15, 4

Input
1, 2, 3, 4, 5, 6, 7, 8, 9
Output
9, 2, 7, 4, 5, 6, 3, 8, 1