Count Triplets

  • + 1 comment

    How can solve the problem by a single pass of the array?