hackerrank is this a binary search tree problem solution in python

visit shbcf.ru