Find the missing number and duplicate elements in an array
Given a limited range integer array of size n with all its elements between 1 and n except for one element that occurs twice and one missing from the list. Find the missing number and the duplicate element in linear time and without using any extra memory.