Clover Infotech interview question

Define a function that returns the max value given an array of any length.