int check_permissions(char *first[10], char *second[10]) {  // first: permissions of a file, second: required permissions (input)
    int result = 0;

    for (int i = 0; i < 9; i++) {  // need to omit first value -/d
        // for r w and x chars: check that sec[i] has that
        // if second is 'r' 'w' 'x' but first is not: second[i] != '-' && second[i] != first[i]
        if (second[i] != '-' && first[i] == '-') {
            // this should work, permissions are only formatted one way so either the write letter or it does not have that permission
            result = 1;
        }
    }
    return result;
}
check if second[i] is equal to the char '-'