LeetCode Solution, Easy, 1114. Print in Order