def ReverseComplement(Pattern):
    """Find the reverse complement of a DNA string."""
    thisdict = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
    complement = []
    for i in Pattern:
        complement.append(thisdict[i])
    return "".join(complement)[::-1]