Find Single Element Leetcode Python Practice