Question d’entretien chez New York Times

A simple coding exercise, sub-easy Leetcode difficulty