Reverse a String

ruby

Write a method `reverse_string(str)` that returns the reverse of `str`.

Sign in or create an account to write and run code.