ABC Interview Question

Reverse a string with persistent of White spaces