Question d’entretien chez Amazon

Coding challenge with two scenarios mainly focused around data structures and algorithms