ABABC C ->A AB ->BA BAA ->ABC