Domanda di colloquio di Point72

python problem was similar to leetcode easy