Suppose a sorted array is rotated at some pivot. Find the minimum element.
nums = rotated sorted array
minimum element
Example 1:
Input:
nums = [3,4,5,1,2]
Output:
1
Explanation:
Minimum is 1.