Find Missing Number And Duplicate Elements In An Array
Given an unsorted array of size n. Array elements are in range from 1 to n.
One number from set {1, 2, …n} is missing and one number occurs twice in array.
Find these two numbers.
For example:
Input arr = [1,3,4,5,6,7,4]
Missing Item = 2
Duplicate Item = 4