Bloomberg Interview Question

finding the target in an array that is first ascending then descending