[Community Puzzle] Match DNA Sequence

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @vivacit,validated by @Darazdeblek,@FredericLocquet and @soh75.
If you have any issues, feel free to ping them.

I succeeded in the four tests but failed with the validator 3 when sending my code.
Could someone give any hint about his validator ? I don’t actually understand what is the problem.

I found where was the problem.
One have to think of the situation where gene is shorter than DNA and have differences for some elements. I initially considered that when gene was shorter than DNA, all elements where identical.