fn main() { println!("Hello, world!"); } struct Solution; impl Solution { pub fn reverse(x: i32) -> i32 { x.abs().to_string().chars().rev().collect::().parse::().unwrap_or(0) * x.signum() } }