Count of Equilateral Triangles of unit length possible from a given Hexagon
Given an array S[] consisting of the lengths of the 6 sides of a Hexagon, the task is to calculate the number of equilateral triangles of unit length that can be made from the given hexagon. Examples: Input: S = {1, 1, 1, 1, 1, 1} Output: 6 Explanation: Input: S = {2, 2, 1, 3, 1, 2} Output: 19 Expla