Count Words with Repeating Characters

Write a function that counts the number of words in a sentence that have repeating characters.
        
       Input:-hello world
       Input Description: Input a string. 
       Output: 1
       Output Description: Output the count of words with repeating characters. 
       Constraints: 1 <= string length <= 10^6
       Explanation: 

Loading...