alternating characters solved