Rosetta Problems

Number of Distinct Substrings in a String

https://leetcode.com/problems/number-of-distinct-substrings-in-a-string