Steps involved in binary search
1️⃣ Set the search interval to encompass the entire sorted list.
2️⃣ Find the middle element of the current interval.
3️⃣ Compare the middle element with the target.
4️⃣ If the middle element matches the target, return its index.
5️⃣ If the middle element is greater than the target, narrow the search to the left half.
6️⃣ If the middle element is less than the target, narrow the search to the right half.