Repeating and Missing number in array. Brute Force to efficient approach.

Approach 1 : Using Extra Space