int numJewelsInStones(char* jewels, char* stones) { int count=0; for(int x=0;x<strlen(stones);x++) { for(int y=0;y<strlen(jewels);y++) { if(stones[x]==jewels[y]) { count++; break; } } } return count; }