Domanda di colloquio di Amazon

tree and graph problem and a system design question