An ascending array of distinct integers nums has been rotated at some unknown pivot. Return the minimum element of the array in O(log n) time. Input format Input is a single array, e.g. [[3,4,5,1,2]] .