Compare in - time , out - time and level of i - th node to the respective extremes among all nodes of the given set
if ( t_in [ i ] <= mint and t_out [ i ] >= maxt and level [ i ] > l ) : NEW_LINE INDENT node = i NEW_LINE l = level [ i ] NEW_LINE DEDENT return node NEW_LINE