made dna solution use recur, since a one symbol change removes the stacks.