search nodes using function

Check whether root object which created from BSTNode, is not null. Then go inside if loop and check whether node is place on left side or right side