Rhombus Systems Interview Question

Write a function which return the greatest number in the array