Given an evenly spaced array of integers, find between which 2 values an integer falls
<p>Hi I'm having a bit of trouble writing some logic with javascript
Given an array (arr1) and test value (test)</p>

<pre><code>arr1 = [5, 12, 19, 27]
test =15
</code></pre>

<p>Return a value of 3 for test=15, where test&lt;5 = 1, 5&lt; test >12=2, etc. Test can be any integer between 1 and 31 inclusive.</p>

<p>Thanks!</p>
