1698: Number of Distinct Substrings in a String

Problem Statement