Added Substrings solution