Rust Split Array Leetcode Question