a = 'rrgb'
b = 'rggb'
I have these two strings. I am trying to count the correct amount of duplicates. The result should be three, b has 3 of the correct letters. But everything I find online returns 4 since technically they're the same letters. What is the best way to do this?