結果 : application of stack and queue