does it work for unsotred array?
since it's checking if
arr[middle] is less than or bigger than the target if u given unsorted array for exampleand we r looking for 3 then
it'll first land on 1, then check if 1 is smaller or bigger than 3. Since it's smaller than 3 it'll look on the right side but 3 in on the left side.
so does that mean it'll only work with sorted array or am I getting something wrong??
i do know how to sort an array btw xD
