Amazon Interview Question

Solve the graph question by telling them your understanding and though process side by side.