Block interview question

Tree and graph traversals