```
def reverse_words(sentence):
    words = sentence.split(" ")
    out = []
    for i in range(len(words) - 1, -1, -1):
        if words[i]:  # Check if the word is not empty
            out.append(words[i])
    return " ".join(out)
```