Return the max int in an array.
Implement max_int(nums) to return the largest integer in the non-empty list nums. The input is a list of integers, and the output is a single integer. Do not sort the array, and handle negative values correctly.
Examples: max_int([3, 1, 4, 2]) returns 4; max_int([-8, -3, -10]) returns -3.
Constraints: 1 <= len(nums) <= 10^4, and each value is between -10^9 and 10^9.
def max_int(nums):