Amazon Interview Question

dsa on graphs was asked