title: How to find 1st maximum element of an array in PL/SQL
body: <p>Suppose given array is
  <code>1,2,3,4,5,6</code></p>
  <p>It should give me <code>6</code> as an output.</p>
  <p>This is incomplete code as I am stuck here.</p>
  <pre><code>SET SERVEROUTPUT ON;
  DECLARE
    TYPE maxarray IS VARRAY(10) OF NUMBER NOT NULL;
    v_element maxarray := maxarray(1,2,3,4,5,6);
    v_max     NUMBER;
  BEGIN
  
  
  END;
  </code></pre>