Count Possible Triangles Leetcode Python Easy