Leetcode Unique Element In An Array Objects That Are Triangles