Domanda di colloquio di Fractal

Basic Python Leetcode question.(Don't remember in detail).