PubMatic Interview Question

Code for binary search tree, repeated number in an array