Count Possible Triangles Leetcode Javascript Questions W3schools