public static int getHeightItr(Node root){
	      //Write your code here
	        if(root == null) {
	            return 0;
	        }
	        int height = 0;
	        Queue<Node> children = new LinkedList<Node>();
	        children.add(root);
	        while(true) {
	                      
	            int childCount = children.size();
	            if(childCount == 0) {
	                break;
	            }
	            int count = 0;
	            
	            while(count < childCount) {
	                Node temp = children.poll();
	                if(temp.left != null) {
	                    children.add(temp.left);
	                }
	                if(temp.right != null) {
	                    children.add(temp.right);
	                }
	                count++;
	            }
	           
	            height++; 
	        }
	        height--;
	        return height;
	    }