Count Possible Triangles Leetcode Playground C