Problem 2: AVL Tree mini-interpreter