Suppose an array of length sorted in ascending order is rotated between and times. For example, the array nums = might become:
Notice that rotating an array 1 time results in the array .
Given the sorted rotated array nums that may contain duplicates, return the minimum element of this array.
You must decrease the overall operation steps as much as possible.