This loops through all articles, then for each article, loops through all users, and for each user, checks to see whether their list of articles includes the "current" article from the outer loop. This technically works, but is extremely inefficient. See my example PR for a much simpler way to do this.