Amazon interview question

How would you write a software for dna matching.