SquareBoat interview question

Code: Find the Missing element in the Array.