Using unordered_map to store frequency of elements mapT will have freq of elements of T
Map < Character , Integer > mapS = new HashMap < > ( ) , mapP = new HashMap < > ( ) , mapT = new HashMap < > ( ) ;