Question d’entretien chez Amazon

leetcode hard and leetcode easy, doable in time allowed.