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