Question d’entretien chez Amazon

Hacker rank coding question with detailed problem statements