Using unordered_map to store frequency of elements mapT will have freq of elements of T
Dictionary < char , int > mapS = new Dictionary < char , int > ( ) ; Dictionary < char , int > mapP = new Dictionary < char , int > ( ) ; Dictionary < char , int > mapT = new Dictionary < char , int > ( ) ;