# [Haskell], 45 bytes *-2 bytes thanks to H.PWiz.* <!-- language-all: lang-hs --> (r.g.r=<<).words g(x:y:z)=' ':y:x:z r=reverse [Try it online!][TIO-jbpi10sl] [Haskell]: https://www.haskell.org/ [TIO-jbpi10sl]: https://tio.run/##DcY7DoQgEADQ3lNMjIlayAGIcwpbG4IDbhYXMvg/vLO@6s0mfykEcThKw8orxr5v1RF5yoVvTn3pu8Ua6jenvgtGpp04kyzm8wOEtK3DylCBg/KKGxMcFGxcqJTHumB8ls6m9Ac "Haskell – Try It Online"