hackerrank trees is this a binary search tree solution

join shbcf.ru