Sample Input:
They are students.
aeiou
Sample Output:
Thy r stdnts.
solution
#include <stdio.h>
#include <string.h>
int main(){
char s1[10005], s2[10005];
int hash[130] = {0};
gets(s1);
gets(s2);
for(int i = 0; i < strlen(s2); i++)
hash[s2[i]]++;
for(int j = 0; j < strlen(s1); j++){
if(!hash[s1[j]]) printf("%c", s1[j]);
}
return 0;
}