Solve problem 99 using Rust.