Pergunta de entrevista da empresa Siemens Digital Industries Software

Find missing element from array of size N that has elements from 0..N-1.