User *find_user(const char *name, const User *head) {
    // cast a (const User *) to a (User *)
    User *current = (User *) head;

    if (current == NULL)
    {
        return NULL;
    }
    
    while (current != NULL && current->next != NULL)
    {
        if(strcmp(current->name, name) == 0){
            return current;
        }
        current = current->next;
    }

    return NULL;

}
/* * Return a pointer to the user with this name in * the list starting with head. Return NULL if no such user exists. * * NOTE: You'll likely need to cast a (const User *) to a (User *) * to satisfy the prototype without warnings. */