#6 height of a tree using depth search non recursive