Amazon interview question

Question based on DSA and Leadership Principles.