Solve problem 57 using Rust.