This is the code that I found on a site....
int count_unique_substrings(string const& s) { int n = s.size(); const int p = 31; const int m = 1e9