ruby remove duplicates from array

# Step 1: Define an array with duplicates
array_with_duplicates = [1, 2, 3, 4, 1, 2, 5, 6, 3, 7, 8, 9, 7, 10]

# Step 2: Use the uniq method to remove duplicates
array_without_duplicates = array_with_duplicates.uniq