There are numbers from 1 to N in an array, out of these, one of the number gets duplicated and one is missing.
The task is to write a program to find out the duplicate number.
(example: 1 2 3 3 4 5)
Already Solved the question in your head ?? Take this.. : No using any auxiliary space like arrays.