added unique substrings facebook problem