Question d’entretien chez Asana

What would this code do, leetcode style question