If you have to find the maximum value from an array without using built-in functions, how can you do it?
Implement a function that scans a non-empty array of integers and returns its largest value. Do not use max(), sorting, or other built-in operations that directly determine the maximum.
The function receives nums, a non-empty list of integers, and returns one integer representing the largest element.
def maximum_value(nums):