#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define HUNDRED 100   
int main()
{
    char str[HUNDRED];
    char forbiddenChars[] = "!@#$%^&*()+= ";
    scanf("%s",str);
    for(i=0;str[i];i++)
    {
        if(str[i] == newStr[]) //this if is supposed to check if they have the same char
        {
            //prints illegal password
        }
    }
}`
I was asked to write a code that checks if a password is "good", "good" means the password have no chars like !@#$%^&*()+= and does not have any same chars that go together, for example butter is bad because it has double t. also it has no spaces.
So I thought that I can make a string that contain all the illegal chars and then check if they both have some chars that are the same, but I have no idea how to do this. Please help me