please I want to reverse word using stl like that

input

this is a test

output

test a is this