Solvative Interview Question

check if the array is bitonic ?