recover BST in Java

OJ TLE