Reversing a String

What does reverse mean?

When given a string, we can do multiple actions with it. One of these being, reversing a string. By reversing we simply mean, we can take the string and flip it. All the letters in the front, go to the back and vice versa. The illustration below shows exactly how to do that!

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.