Unknown Planner interview question

Remove Duplicates from an array LeetCode problem.