Domanda di colloquio di Okta

Find max number in an array. Write a test function that will take the input and expected output. Write test cases for it. 2nd: Find the 2nd max in an array.