title: Count the number of possible "non-identical" triangles
body: <p>What I am considering as identical here is for example a
  triangle with sides such as: 3-4-5 and a triangle 5-3-4.
  I have to count the number of possible triangles with the exception of the identical ones.
  <a href="https://www.geeksforgeeks.org/find-number-of-triangles-possible/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/find-number-of-triangles-possible/</a> - my code is basically the brute force method. I've tried using for to remove all identical triangles from the possible triangles, but it takes too long with a bigger array.</p>
  <p>I'd like to figure out how to do it more efficiently, is it possible to modify the input array so that these identical triangles don't even form to begin with?</p>