Oracle interview question

Rotated array median finding