010: Solve in C and Rust