Given a string, reverse the string.
// input: const s = 'hello world' // output: 'dlrow olleh'
/* output */