Input: {5, 8, 5, 3, 3, 2, 7}
Output: {5, 8, 3, 2, 7, ?, ?}
Idea is that we should remove the duplicate number from the array and should return the array in the original form (obviously without duplicate).
Please help me with an efficient algorithm or C code.