Domanda di colloquio di Mark43

it was an easy leetcode question