NVIDIA interview question

They asked for the logic to get the maximum element in a shifted sorted array.