Rust Split Array Leetcode Questions