Printing the validity of a string A string to be valid if all characters of the string appear the same number of times. Input: A string. Output: YES if valid, otherwise NO Author: Anirban Bal