in unsorted array 1,2..n find missing or duplicate element