MiQ Interview Question

Reverse a string using recursion

Interview Answer

Anonymous

Apr 5, 2019

Swap first and last characters and call the function recursively for the string excepting first and last characters till length reaches 0 or 1.

3