title: How to check if array is a min heap?
body: <p>I have the following array. How can I check whether the array containing n elements is a <strong>min heap?</strong> 
  <a href="https://i.stack.imgur.com/BXU3f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BXU3f.png" alt="enter image description here"></a></p>