Amazon interview question

string and monotonic stack problems and queries