in-order iterative sol