Snap interview question

mostly about graphs.