Given a rotated sorted array `nums` of distinct values, implement `findMin(nums)` returning the minimum element.
Run your code to see results.