@@ -0,0 +1,556 @@
+package com.ttaylorr.ctci.answers.strings;%0A%0Aimport com.ttaylorr.ctci.meta.Solution;%0A%0A@Solution(chapter = 1, problem = 8)%0Apublic class SubstringTest %7B%0A    public static SubstringTest of(String base) %7B%0A        return new SubstringTest(base);%0A    %7D%0A%0A    protected final String base;%0A    protected SubstringTest(String base) %7B%0A        this.base = base;%0A    %7D%0A%0A    public boolean isContainedWithin(String other) %7B%0A        return (this.base + this.base).contains(other);%0A    %7D%0A%0A    // Example usage:%0A    // SubstringTest.of(%22foo%22).isContainedWithin(%22oofoof%22);%0A%7D%0A

Add rotated substring problem