Wipro Interview Question

count repeated char in word