Bt is a bst or not

in first approach of inorder traversal in the example you have taken if instead of 38 there is a number greater than 50 lies at that location then it will not give a sorted array and approach would prove wrong