← Morgan Stanley questions

Reverse a string recursively

Filed under Morgan Stanley · Also reported at Ksolves

Write a recursive function to reverse a string. You should avoid explicit indexing if possible and rely on string operations such as slicing.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.