A sorted array of integers has been rotated an unknown number of times. Given this array and a target element, find the index of the element in faster than linear time. If not found, return -1.
Input: first line n, second line n space-separated integers (rotated sorted), third line target. Output: index or -1.