Write routine to tell difference between sequences