Rust Minimum Function In Javascript Geeksforgeeks