fn main() { println!("Hello, world!"); } struct Solution {} impl Solution { pub fn length_of_last_word(s: String) -> i32 { s.split_whitespace().last().unwrap().len() as i32 } }