creating a function that reverse a string code example Example: reverse a string let t = s.chars().rev().collect::();