Reverse Prefix of Word

Reverse Prefix of Word - Coding Problem | K5kC