I\'ve written this binary search algorithm based on recursion but I\'m unable to understand the reason for the error.
// Only a sorted array must be enter