Solve problem 65 using Rust.