Solve problems 23,39,44 using Rust.