Improve implementation with No Additional Variable string reverse.
Add tests for the implementation.