โ† Zoho questions

Reverse a string preserving spaces and punctuation

Filed under Zoho

Reverse the characters of a given string in-place (or construct a new string) while keeping spaces and punctuation marks in their original positions.

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 Zoho questions

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