Pergunta de entrevista da empresa UiPath

Finding the missing number in an unsorted array