int check_permissions(char *file, char *required){
    for (int i = 0; i < 9; i++){
        if (file[i] != "-" && file[i] != required[i]){
            return 1;
        }
    }

    return 0;
}
Return 1 if file[i] != "-" and file[i] != required[i] for any i between 0 and 8.