strings intermediate 3: divisible substrings