Nisum Interview Question

remove dublicate elements from array without using collection framework with complexity O(n)