(Beginner) Switching letters in a character string with "#" if they aren't in a char array :            void funOne(char a[], string b, int aL, int bL){
        int cnt[aL]={0};
        for(int i=0; i<bL; i++){
          for(int j=0; j<aL; j++){
             if((char)b[i]==a[j];{
              cnt[j]++;
               break;
          }
        }
        }
        for(int i=0; i<bL; i++){
          for(int j=0; j<aL; j++){
           if((char)b[i]==a[j]&&cnt=0) {
           b[i]='#';
         break;
    
    }}}


There is a char arr[]={'H', 't', 'h', 's', 'e', 'i'};
and a character string "Sherlock Holmes is a fiction private detective"
Every character that's not in the array  should be replaced with "#" in the string.
The output should be "She##### H###es is # #i#ti#n ##i##te #ete#ti#e"
There is something wrong with my code but I don't know what.