Leetcode Find Unique Element In Sorted Python