Sherlock and Anagrams

  • + 1 comment

    It is working, but why counter += v * (v - 1) / 2;?