Question d’entretien chez Booking.com

HackerRank test, Leetcode easy/medium difficulty.