Solve problems 12,50,70 using Rust.