Skip to main content
3 of 3
added 29 characters in body
totallyhuman
  • 17.3k
  • 3
  • 33
  • 88

Haskell, 45 bytes

-2 bytes thanks to H.PWiz.

(r.g.r=<<).words
g(x:y:z)=' ':y:x:z
r=reverse

Try it online!

totallyhuman
  • 17.3k
  • 3
  • 33
  • 88