Amazon Interview Question

You are given a length n array. The first element is 1, and each subsequent element increases by 1, except for one element which is repeated (i.e. [1, 2, 3, 3, 4]). Find the repeated number.