CMPSC 306 Javascript Function Reverse Words

Write a function reverse_words() that takes a message as a string of characters and reverses the order of the words.

YOU ARE NOT ALLOWED TO USE the array reverse function

For example: message = “cake pound steal”;

reverse_words(message)_x000D_
will return 'steal pound cake'; 

When writing your function, assume the message contains only letters and spaces,
and all words are separated by one space.