Ruby Array Exercises: Remove duplicate elements from a given array