Amazon interview question

dsa : graph and binary tree