Autodesk Interview Question

Code: Find missing number in given array sequence.