Print BST keys in the given range

Why is it failing the test case ?

@Karanveer hey your printing in range function is correct there must be problem with input or in your building fuction please check that.