IMDb interview question

A classic graph question.