Leetcode 1698. Number of Distinct Substrings in a String | Hello Interview