GEICO interview question

Coding Exercise to find minimum and maximum value in sorted array