Count Possible Triangles Leetcode Javascript Questions