One liner 0ms
Code\n\nimpl Solution {\n    pub fn score_of_string(s: String) -> i32 {\n        s\n        .chars()\n        .collect::<Vec<_>>()\n        .windows(2)\n       
# Code\n```\nimpl Solution {\n    pub fn score_of_string(s: String) -> i32 {\n        s\n        .chars()\n        .collect::<Vec<_>>()\n        .windows(2)\n        .map(|w| (w[1] as i32 - w[0] as i32).abs())\n        .sum::<i32>()\n    }\n}\n```
['Rust']