printTreeByLevel