Reversed String method - solved with tests