Rakuten interview question

Find the only missing number in a sorted array.