add java solution for LowestCommonAncestor