string1 = "abbbcccd" string2 = "abbbbdccc"
How do I find the number of triplets found in a string. Triplet meaning a character that appears 3 time