Find the maximum integer in an array using an efficient method.
Implement find_maximum(nums), which accepts a non-empty array of integers and returns its largest value. Scan the array without sorting it. The result is a single integer.
def find_maximum(nums):