Solvative interview question

check if the array is bitonic ?