Problem #1 in rust.