Wayfair Interview Question

1. Given an array of duplicate elements, remove duplicates, maintain order of elements.