Amazon Interview Question

Graph based algorithmic problem to solve in your own choice of language.