Added Lowest Common Ancestor solution in Ruby