title: Couldn't quite understand the loops used to create the pattern
body: <p><a href="https://i.stack.imgur.com/XPH6X.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XPH6X.jpg" alt="enter image description here"></a></p>
  
  <p>Can someone explain the loops used here?</p>