Count Possible Triangles Leetcode Python Beginner Programs