Missed output for string reverse example