Question d’entretien chez Amazon

I was given a Leetcode easy and medium.