WellDev interview question

Write a code to delete the duplicate items from a given array