#include #include char s[210]; int t,i,cost=0; int check[125]; int main() { scanf("%d",&t); while(t--) { memset(check,0,sizeof(check)); // setting count of all jewels to zero cost=0; scanf("%s",s); // reading the string for(i=0; i