Question d’entretien chez Crunchyroll

Asked to solve leetcode style garbage