Given a sorted array, return the first and last index of target in O(log n). Two approaches — watch how a linear scan compares to two boundary binary searches.
O(log n)