Rhombus Systems interview question

Write a function which return the greatest number in the array