Reverse the Odd Length Words
Given a String
, reverse all of the words whose length is a odd number.
Ex:
reverseOdd("One two three four") ➞ "enO owt eerht four"
Stolen Borrowed from Edabit
Given a String
, reverse all of the words whose length is a odd number.
Ex:
reverseOdd("One two three four") ➞ "enO owt eerht four"
Stolen Borrowed from Edabit