Can the strings have duplicate characters, as in the string "good" has 2 "o"s?


#1

Comment body goes here.


#2

Yes. Verify with the Expected Output feature near the problem statement. When you have questions about what kind of data to expect, plug in a few test cases and see what you get.