-
Completed at: 2023-10-14T04:20:45.773Z
-
Completed languages: java
-
Tags: Strings, Fundamentals
-
Rank: 7 kyu
Complete the function that accepts a string parameter, and reverses each word in the string. All spaces in the string should be retained.
"This is an example!" ==> "sihT si na !elpmaxe"
"double spaces" ==> "elbuod secaps"