Pregunta de entrevista de Nagarro

Finding the missing element from an array containing n natural nos