Persistent Systems Interview Question

Reverse a sentence by word with a given reverse function