Repeated DNA Sequences

Find all 10-character-long substrings that occur more than once in a DNA sequence. DNA sequences consist of the nucleotides 'A', 'C', 'G', and 'T'. Return the repeated substrings in any order.

Examples
Input: "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT"
Output: ["AAAAACCCCC","CCCCCAAAAA"]
Hints

Repeated DNA Sequences

Find all 10-character-long substrings that occur more than once in a DNA sequence. DNA sequences consist of the nucleotides 'A', 'C', 'G', and 'T'. Return the repeated substrings in any order.