Solves the game 24 (for any number, not just 24). Written in Rust and fully commented.