title: Finding a sequence of 4 values in an array without loop
body: <p>I'm trying to find a sequence of ascending values in an array (4 values) without <code>for</code> or <code>if</code>.
  For example, A = [8 9 1 3 7 18 9], input will be: <code>1 3 7 18</code>. </p>
  
  <p>Any way to do it without <code>for</code>?</p>