Pregunta de entrevista de Autodesk

Code: Find missing number in given array sequence.