solution ← 3⌊/⊢ ⍝ Tests solution 1 5 0 2 9 3 7 6 4 8 ⍝ 0 0 0 2 3 3 4 4