BST Sherlock and GCD from HackerRank.