def reverse_complement(dna):
    """Complement and reverse DNA string"""
    complements = str.maketrans('acgtrymkbdhvACGTRYMKBDHV',
        'tgcayrkmvhdbTGCAYRKMVHDB')
    return dna.translate(complements)[::-1]
