Solution for Search in Sorted Array I.