Squash Apps Interview Question

Remove duplicate element from the array