Pregunta de entrevista de Amazon

Graph question rotten tomatoes question