Slug: unsafe-redesign-03 · Paired reading: Chapter 4
Prompt
Tiny arena tree: struct Tree { nodes: Vec<Node> } with
Node { val, left: Option<usize>, right: Option<usize> }.
Implement fn insert_left(&mut self, parent: usize, val: i32) -> usize
and fn get(&self, idx: usize) -> Option<i32>.