Number of Distinct Substrings in a String - DSA Problem | Talentd