Given a rotated sorted array of distinct integers, find and return the minimum element.
Example 1:
Input:
nums = [3,4,5,1,2]
Output:
1