单项选择题

一个栈的输入序列为12345,则下列序列中是栈的输出序列的是()

A.23415
B.54132
C.31245
D.14253