Amazon interview question

Graph question rotten tomatoes question