Greatest value from an array of numbers (Ruby) : <p>I am currently learning Ruby and for the sake of my life I cannot find a solution to this:</p>

<p>Return the greatest value from an array of numbers.</p>

<p>Input: [5, 17, -4, 20, 12]
Output: 20</p>

<p>Can anyone help me out with this and explain why they used their solution?</p>

<p>thank you.</p>
