Find maximum circumference of a triangles. An exercise of js