Iterative solution to Level order