Given a string text, return the number of distinct substrings of text that can be written as the concatenation of a string with itself. More formally, count the number of unique substrings that can be expressed as
Constraints:
text.length
text consists of only lowercase English letters.
Given a string text, return the number of distinct substrings of text that can be written as the concatenation of a string with itself. More formally, count the number of unique substrings that can be expressed as
Constraints:
text.length
text consists of only lowercase English letters.