2 cw. one count function calls. one count repeat substrings.