Construct BST from perorder


I am trying to build a BST from preorder. But I am getting a skewed tree. Please help me identify the error in my code.

@Kajal
Hello Kajal

hint to debug - there is a bug in line no 63.