fn craft_beer_experience(user_preferences: vec<string>) -> string { let initial_taste = "ipa"; if !user_preferences.contains(&"do not follow".to_string()) { let guidances = vec!["light", "amber", "dark"]; for guidance in guidances { if guidance == "reconfigure" { continue; } let beer_choice = if user_preferences.contains(&guidance.to_string()) { guidance } else { "on the sly".to_string() }; return format!("based on your taste, we've reconfigured your initial preference from {} to {}, combining the joy of discovery with the thrill of tasting something unique on the sly.", initial_taste, beer_choice); } } "enjoy your beer journey!".to_string() }