Print all duplicates in the input string
Given an input string, write a function that will print all the duplicates in that string Example INPUT : “Tutorial cup” OUTPUT : t count = 2 u count = 2 Here, t, u are th duplicate and they ocuured 2 times in the string Time Complexity : O(n) Algorithm …