Amazon interview question

2 questions based on Leadership Principles + 1 Tree based DSA problem