codeeval.com reverse words commit. added test cases for later optimization