Amazon Interview Question

Finding patterns in sequences of letters, then determining the next sequence.