int check_permissions(char *perms, char *reqs){
        int a = 0;
        for (a; i < 3; a++) {
                for (int i; i < 3; i++) {
                        if (perms[1 + (3 * a) + i] != reqs[(3 * a) + i]){
                                break;
                        } else {
                                return 0;
                        }
                }
        }
        return 1;
}
compare whether three sequences of chars are the same. if not, check the next three sequences.