fn reverse_string(s: &str) -> String {
s.chars().rev().collect()
}
// Examples
fn main() {
let original_string = "hello";
let reversed_string = reverse_string(original_string);
println!("Original string: {}", original_string);
println!("Reversed string: {}", reversed_string);
let original_string2 = "नमस्ते"; // Example with Unicode characters
let reversed_string2 = reverse_string(original_string2);
println!("Original string: {}", original_string2);
println!("Reversed string: {}", reversed_string2);
}