Count the number of triangles that can be built from a given set of edges. https://app.codility.com/programmers/lessons/15-caterpillar_method/count_triangles/ An ...