Pregunta de entrevista de Avalara

Find missing number in an array given time complexity 0(logn)