結果 : check top element in stack python