Domanda di colloquio di Wayfair

Three questions. One very very simple debugging question. Two algorithm question that are leetcode easy