Question d’entretien chez Avalara

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