        if(required[i] == 'r' || required[i] == 'w' || required[i] == 'x'){
            if (required[i] != permissions_field[i]){
                return 1;
            }
        }
// TODO: Implement a helper named check_permissions that matches the prototype below.
//int check_permissions(char *, char *);
int check_permissions(char *permissions_field, char *required){
    //takes the permissions and required
    //if it has all the required permissions
    //check where in required it's not a dash and make sure the 
    // corresponding spot in permissions_field matches 
        //return 0
    //else 
        //return 1
    
    //go through required
    //if the ith element in the array is r or w or x, then
    // compare it to the array at the same position in permissins_field
    //if the position in both is equal then keep going
    //if not then the positions do not match so return 1

    //loop through required, an array of 9 characters
    int i;
    for (i = 0; i < 9; i++){
        // check it
        if(required[i] != '-'){
            if (required[i] != permissions_field[i]){
                return 1;
            }
        }
        return 0;
    }
}