It is coputing count of distinct substrings. But replacing character 
and recomputing is yet to be done.