Steps of the binary search algorithm
1️⃣ Find the middle element of the sorted list
2️⃣ Compare the middle element with the target
3️⃣ If equal, return the index
4️⃣ If the target is greater, search the right half
5️⃣ If the target is less, search the left half
6️⃣ Repeat steps 1-2 until found or the interval is empty