Amazon interview question

HackerRank Questions + Leadership Principles