User *find_user(const char *name, const User *head) {
    
    User *curr = (User*)head;
    
    while (curr!= NULL){
        if (strcmp(curr->name, name) == 0){
            return (User *) curr;
        }

        curr = curr->next;
    }
    
    return NULL;
}
Find and return the user with name in the linked list starting at head