def printMaxElementByLevelOrder(root):
if not root:
return
queue =[]enter code here
queue.append(root)
maxElement = 0
while(len(queue)>0):
node = queue.pop(0)
if maxElement < node.value
maxElement = node.value
if node.left is not None:
queue.append(node.left)
if node.right is not None:
queue.append(node.right)
print maxElement