title: Find a matching or closest value in an array (from a given value)
body: <p>How can I search and find, for a given target value, the closest value in an array?
  For example here is my array:</p>
  
  <p><strong>0, 54, 10, 11, 152, 7</strong></p>
  
  <p>For example, when I search with the target value 6, the code shall return 7</p>