Hackerrank How Many Substrings Solution Thecscience

Hackerrank How Many Substrings Solution Thecscience