|Write a program to reverse a string without using ...|General Coding Problems

fn reverse_string(s: &str) -> String

Easy

Write a program to reverse a string without using built-in functions.

fn reverse_string(s: &str) -> String

Asked in

tcs

Examples

Example 1:
Input: hello
Output: olleh
Example 2:
Input: world
Output: dlrow
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases