minLimit to negative infinity and an empty stack.num in preorder:
num, pop from the stack and update minLimit.num is less than or equal to minLimit, return false.num onto the stack.preorder is processed without returning false, return true.