Count Possible Triangles Leetcode Python Solutions