Leetcode Unique Element In Python For All Selected Lines And Angles