In the series X, Y, Z, A, ?, C, D, what character should fill the gap?

Answer: A. B
The series follows the alphabetical order, and the missing character is B.