Question bank › Strings
Dsa Strings Warm-up

Reversed Words

Given a string of words separated by spaces, write a program to reverse the order of the words. Each word should maintain its original character order. For example, the input 'hello world' should produce 'world hello'. Example: Input: hello world Output: world hello

Key concepts

stringsbasic manipulation

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.