HackerRank Day 22: Binary Search Trees problem solution - TheCScience