=MIN(MMULT(--(ROW(D4:D20)>=TRANSPOSE(ROW(D4:D20))),D4:D20))

This is an array formula, confirmed with Ctrl+Shift+Enter.

Also, this was fun to research.