How do you print count of duplicate characters from a string?
Solution:
You can do this by many ways, it tried to
explain the 2 ways in one ways using loop you either for loop and foreach loop
or by using IndexOf(ch) function
indexOf() : This method returns the index within...