Red Hat interview question

They asked the reverse compliment dna sequence algo