Lowest Common Ancestor of a Binary Tree - LeetCode 236 - JavaScript