function to compare Postorder traversal on constructed tree and given Postorder
def checkPostorder ( node , postOrder , index ) : NEW_LINE INDENT if ( node == None ) : NEW_LINE INDENT return index NEW_LINE DEDENT DEDENT