Your question is Max Value in Array. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Write a function that returns the maximum value in an array of integers. The array may contain negative numbers, duplicates, and zero.
numsnumsnums is non-empty.def find_max(nums):