Snap Interview Question

mostly about graphs.