Count Possible Triangles Leetcode Rating