title: How would I find the last multiple of three in an array?
body: <p>This is what I've tried so far, can't get the right outputs. I tried going through the array in the reverse direction but got stuck. </p>
  
  <pre><code> public int findMultipleOfThree(int[] arr)
   {
      int multipleOfThree = 0;
  
      for(int x = arr.length-1; x &gt;= 0; x--)
      {
         if(x % 3 = 0)
         {
             multipleOfThree = x;
         }
      }
  
      return multipleOfThree;
   }
  </code></pre>