Get the frequencies of the characters that present in string
int x = 0 , y = 0 ; x = ! map . ContainsKey ( it ) ? 0 : map [ it ] ; j ++ ; it = newString [ j ] ; y = ! map . ContainsKey ( it ) ? 0 : map [ it ] ;