Question d’entretien chez Amazon

Easy leetcode question was asked