Solve problems 7,13 using Rust.