LCA

Java implemention