For each positive integer n, let S(n) be the number of sequences of length n consisting solely of the letters A and B, with no more than three A s in a row and no more than three B \mathrm{~s} in a row. What is the remainder when S(2015) is divided by 12 ?
Answer Choices
A. 0
B. 4
C. 6
D. 8
E. 10