There is an integer array sorted in ascending order (with distinct values) that has been rotated. Given the array and a target, return the index of the target. If not found, return -1.
nums = [4,5,6,7,0,1,2], target = 04nums = [4,5,6,7,0,1,2], target = 3-1