Returns returns tree if the Binary tree is balanced like a Red - Black tree . This function also sets value in maxh and minh ( passed by reference ) . maxh and minh are set as maximum and minimum heights of root .
def isBalancedUtil ( root , maxh , minh ) : NEW_LINE