Solve problems 30,45,55 using Rust.