Challenge: Missing Number in a Sorted Array

Missing number in a sorted array

Suppose that you are given an array of contiguous integers starting from 11 to nn, with one integer missing in the middle, like so:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.