int strip_q_marks(char *s)
{
    int i = strlen(s);
    char q = '?';
    while (strcmp(&s[i], &q) == 0)
    {
        i--;
    }
    int value = strlen(s) - i;
    strncpy(s, s, i - 1);
    s[i] = '\0';
    return value;
}
modify the string to remove any trailing question marks and return the number of question marks that were removed.