Leetcode Single Element In A Sorted Array Intersection In Python