All ChallengesLoading...
Not Solved

Reverse alternating words

Write a function that takes a sentence and reverses every other word, keeping the rest as is.
Advanced
sample input: "hello world this is OpenAI" 
sample output: hello dlrow this si OpenAI
Loading...
Test Output: