Special String Again

  • + 1 comment

    i think it's looking to count all possible sub-strings of a string. so if the string length is n, the number of sub-strings will be (n*(n+1))/2. you can see the 2 commented out in the solution - not sure why