Linear (CA) interview question

Something about graphs. Don't remember