You are given a non-empty array of integers nums.
Your task is to find and return the minimum value in nums.
You may assume that:
Return the smallest element in the array.
[3, 1, 4, 1, 5, 9]
1
The smallest value in the array is 1.
[10, 20, 30]
10
The smallest value is 10, which is the first element.
[-5, -2, -8, -1]
-8
The smallest value is -8.
[3, 1, 4, 1, 5, 9]
1