First Duplicate Value Leetcode Playground Python Snake