Imperva interview question

Tree Linked list stack python