HackerRank How Many Substrings? Solution - TheCScience

HackerRank How Many Substrings? Solution - TheCScience