Pergunta de entrevista da empresa Arista Networks

Q1) write a C program to find the missing number in an array of integers which are consecutive and sorted. array = { 1,2,3,5,6}; missing number is '4'