You are given a sorted list A of length n, and a target value that is known to be present in the list. Write a program (in Python, C, C++, or Java) that returns the index of the target value in A, using no more than 3āš comparisons with the target value made by your algorithm in the worst-case scenario. Explain why the total number of comparisons does not exceed this bound.