solved digit stack