Write a function that returns the maximum value in an array of integers. The array may contain negative numbers, duplicates, and zero.
nums
def find_max(nums):
Whenever you're ready, walk me through your approach or go straight to the code. The requirements are in the Question tab.