Sankey Solutions Interview Question

Oops concept, remove duplicate elements from the array