Leetcode First Non Repeating Character Python Snake