Amazon Interview Question

dsa : graph and binary tree