Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT A = [ 1 , 4 , 3 , 5 , 7 ] ; NEW_LINE B = [ 2 , 2 , 5 , 8 , 9 ] ; NEW_LINE n = len ( A ) ; NEW_LINE if ( IsSorted ( A , B , n ) ) : NEW_LINE INDENT print ( True ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( False ) NEW_LINE DEDENT DEDENT