015: Solve in C, Python and Rust