(Translated by https://www.hiragana.jp/)
Count of distinct substrings | Practice | GeeksforGeeks