An ascending sorted array of distinct integers was rotated at an unknown pivot. Given the rotated `nums` and a `target`, return its index, or -1 if absent. Run in O(log n).