ProCogia interview question

How will you take the reverse complement of a DNA string in R?