Pergunta de entrevista da empresa Stavvy

Given an array of integers, return the missing integer Ex: [1, 2, 3, 5, 6] return 4