How to find the OR of the node values present in the simple path of two nodes in a tree in logn time?