Question d’entretien chez Meta

2 leetcode tagged questions, and then answer time complexity analysis