C # program to check if a string can be made valid by removing at most 1 character using hashmap .
using System ; using System . Collections . Generic ; public class AllCharsWithSameFrequencyWithOneVarAllowed {