結果 : how to implement monotonic stack in java