Solve problem 53 using Rust.