โ† Zoho questions

Reverse specific words in a string

Filed under Zoho

Given a sentence, reverse the words located at specific positions (odd or even) based on the total word count. For example, if the total word count is even, reverse all words at even indices.

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.