Question d’entretien chez ByteDance

1 leetcode medium, with extended question