Question d’entretien chez Dropbox

Leetcode medium question from arrays.