MinStack solution
two more solutions.
trees problems.
trees problems.
XOR operation in Java is ^