I am not a geneticist, nor have I played one on TV. Please do not throw this logic into your fancy new CRISPR machine! (Quoted from original requirements)
DNA sequences are strings which contain only the letters A, C, G, and T. Two sequences are considered akin if they both contain sub-sequences which form an anagram of each other (e.g. ACG, GAC, GCA, and etc.).In two given DNA sequences find the largest possible sub-sequence that would be considered akin. Output the length of the akin sub-sequence and it's position (0-based) in both input sequences.
Examples
Input Result ACGT (first sequence)
GTC(second sequence)3 (length)
1 (position in first sequence)
0 (position in second sequence)
ACGT
CAT2
0
0ACA
AC
2
0
0ACA
GT
0
-1
-1